-
Notifications
You must be signed in to change notification settings - Fork 948
Implement BIT_COUNT
unary operation
#18589
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 all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
48752a8
Implement `BIT_COUNT` unary op
ttnghia da8bb20
Complete implementation
ttnghia 9b2cec0
Update Java code
ttnghia 6882428
Revert changes to `BIT_INVERT`
ttnghia 529e436
Misc
ttnghia 7301727
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia 61c2ed5
Use `__popc` and `__popcll`
ttnghia 2496aae
Simplify implementation
ttnghia 0c14bdb
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia c227e6e
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia c37e90c
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia d74b440
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia 31a4ab0
Update copyright year
ttnghia a73c166
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia 4364800
Add tests for `__int128_t`
ttnghia a469061
Use `cuda::std::popcount`
ttnghia 4c2554a
Using `cuda::std` instead of `std::`
ttnghia bf82c66
Shorten tests
ttnghia f2b640c
Fix empty inputt case
ttnghia bbe5b36
Add `BIT_COUNT`
ttnghia 1f3cb1c
Revert modification to wrong place
ttnghia 0a40cc1
Add tests for `__int128_t` type
ttnghia 51a2b0d
Revert "Add tests for `__int128_t` type"
ttnghia 64ccd85
Merge branch 'branch-25.06' into unary_bitwise_ops
ttnghia 1b67644
Update `unary.pyi`
ttnghia 88fff93
Update copyright year
ttnghia 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.