|
ReactOS 0.4.16-dev-1946-g52006dd
|


Go to the source code of this file.
Macros | |
| #define | ilog2(n) |
| #define | roundup_pow_of_two(n) |
| #define | rounddown_pow_of_two(n) |
| #define | order_base_2(n) ilog2(roundup_pow_of_two(n)) |
Functions | |
| int | ____ilog2_NaN (void) |
| static | __attribute__ ((const)) int __ilog2_u32(u32 n) |
ilog2 - log of base 2 of 32-bit or a 64-bit unsigned value
- parameter
constant-capable log of base 2 calculation
selects the appropriately-sized optimised version depending on sizeof(n)
| #define order_base_2 | ( | n | ) | ilog2(roundup_pow_of_two(n)) |
rounddown_pow_of_two - round the given value down to nearest power of two
- parameter
round the given value down to the nearest power of two
roundup_pow_of_two - round the given value up to nearest power of two
- parameter
round the given value up to the nearest power of two
|
inlinestatic |