Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a function for counting the number of bits in a value, i.e. the index of the highest set bit.

Since BoxedUint isn't const fn, this can be implemented in constant-time using subtle.

Adds a function for counting the number of bits in a value, i.e. the
index of the highest set bit.

Since `BoxedUint` isn't `const fn`, this can be implemented in
constant-time using `subtle`.
@tarcieri tarcieri merged commit f07de91 into master Nov 27, 2023
@tarcieri tarcieri deleted the boxed-uint/bits branch November 27, 2023 02:38
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants