-
-
Notifications
You must be signed in to change notification settings - Fork 679
Use integer power for integer types #1146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
fd09ce3
add i64_pow helpers
MaxGraey d026f4a
minor opts for i64_pow
MaxGraey 5f0b589
add basic logic for compiler & refactor ipow
MaxGraey 4c0cd33
fixes
MaxGraey 6c7f493
fixes
MaxGraey 1757ecb
add Fermat's Last Theorem case
MaxGraey b773944
simplify
MaxGraey 8fa08f0
rebuild rest tests
MaxGraey bf53fbc
include also other int types but without isize / usize
MaxGraey 7503cc5
add more tests
MaxGraey 48b9b08
cleanup
MaxGraey 1a5bbdf
more tests with casts
MaxGraey b6f8c25
clearer
MaxGraey 97909bf
better check for fast path in ipow32/64
MaxGraey a8bc26f
clean space
MaxGraey 254458b
more tests
MaxGraey f222e4c
improve
MaxGraey f0dd9e6
add comment with TODO and shortest addition chains
MaxGraey 4ca7c92
typo
MaxGraey 2dfe9c9
refactor
MaxGraey 9ba46b1
optimize int pow for booleans
MaxGraey db8c969
more tests & fixes
MaxGraey 95e0f57
rebuild tests
MaxGraey 8f7f397
fix glue code as well
MaxGraey 660df02
cleanups
MaxGraey c9b9626
typo
MaxGraey ac0816e
refactor i64_pow
MaxGraey 772d3a5
fix resolver
MaxGraey e7f8988
simplify
MaxGraey 2291c76
refactor
MaxGraey 80fbb45
more
MaxGraey 99f107d
more
MaxGraey ab20782
switch to commonType
MaxGraey 7e7bf6f
cleanups
MaxGraey 774173c
remove unnecessary type assignments
MaxGraey 3413481
skip compileExpression if expresion compaund and already pre-compiled
MaxGraey f93957e
remove compileExpr
MaxGraey 8a28586
use special optimizations for booleans
MaxGraey 2480ee8
simplify
MaxGraey 667a9bf
simplify + add more tests
MaxGraey 1acd61c
remove special case by adressed comments
MaxGraey 652af0f
Merge branch 'master' into int-pow
MaxGraey cbde99b
special case for -1 ** -e
MaxGraey 93bf22f
update
MaxGraey 15bd49d
refactor ipow32 / ipow64
MaxGraey 76dfc11
Merge branch 'master' into int-pow
MaxGraey ee2d5ad
Merge branch 'master' into int-pow
MaxGraey bc8ebd5
rebuild
MaxGraey 91d84b0
Merge branch 'master' into int-pow
MaxGraey 4d07064
rebuild
MaxGraey e585485
Merge branch 'master' into int-pow
MaxGraey 0d48b5a
Merge branch 'master' into int-pow
MaxGraey 1c85077
rebuild
MaxGraey 9365659
Merge branch 'master' into int-pow
MaxGraey d315067
Merge branch 'master' into int-pow
MaxGraey 0ced38e
update
MaxGraey 8f7421d
Merge branch 'master' into int-pow
MaxGraey 788d70a
update
MaxGraey a1045ff
Merge branch 'master' into int-pow
MaxGraey 35d614e
rebuild
MaxGraey 0e31ce7
Merge branch 'master' into int-pow
MaxGraey a6d39c1
update tests
MaxGraey 1d127eb
Merge branch 'master' into int-pow
MaxGraey abfc319
rebuild
MaxGraey 5d6eaf4
remove TBD
MaxGraey 1fee173
Merge branch 'master' into int-pow
MaxGraey f16894c
Merge branch 'master' into int-pow
MaxGraey c2ce148
rebuild
MaxGraey d82a98b
Fix bootstrap
MaxGraey 135eafe
Merge branch 'master' into int-pow
MaxGraey 20b54c6
rebuild
MaxGraey f98d11a
fix lint
MaxGraey 3781465
handle small types
MaxGraey c483af5
remove some redundant tests
MaxGraey 512a132
minor optimization
MaxGraey 306c011
use commonDenominator also for resolver
MaxGraey 8df219d
fix comment
MaxGraey 5b0f490
retrieve operator's kind via fromBinaryToken
MaxGraey f89399d
add mixed pow tests for resolver
MaxGraey d51f471
Merge branch 'master' into int-pow
MaxGraey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.