-
Notifications
You must be signed in to change notification settings - Fork 67
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
log2_up #82
Comments
Reasonable idea for sure, but here are some pedantic responses :P
|
@DanielLiamAnderson Thanks for the reply! The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not an issue but more of a remark.
The
<bit>
library in C++20 containsstd::bit_width()
, which by my testing is at least 1.6x faster thanlog2_up
inutilities.h
. I modifiedlog2_up()
as follows, passing all tests:Since
log2_up()
is key to the pool allocator, it shouldn't hurt to squeeze every bit of speed out of it :)The text was updated successfully, but these errors were encountered: