-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #2301 n_least_significant_bits n_most_significant_bits clear_n_least_significant_bits set_n_least_significant_bits clear_n_most_significant_bits set_n_most_significant_bits Simple utils that correctly handle corner cases, such as shift == 64. I looked at the assembly a bit, probably that's ok. For x86 I used bmi2 where was appropriate. Reviewed By: Gownta Differential Revision: D63329499 fbshipit-source-id: 920d3fe597c63e8ef6e0319ba81c8fc5f3aa5c0e
- Loading branch information
1 parent
6a64ce6
commit c669175
Showing
2 changed files
with
375 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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.