data-structures-c
|
Check if a number is a power of two. More...
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | IS_POW2(X) |
compile time is_pow2 . | |
Functions | |
static size_t | is_pow2 (const size_t x) |
Check if a number is a power of two. | |
Check if a number is a power of two.
#define IS_POW2 | ( | X | ) |
compile time is_pow2
.
|
inlinestatic |
Check if a number is a power of two.
[in] | x | The number at hand. |