#include <cstdint>
#include <cstdlib>
#include <x86intrin.h>
Go to the source code of this file.
◆ ceil_int
#define ceil_int |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) + ((b)-1)) / (b) |
◆ round_down
#define round_down |
( |
|
x, |
|
|
|
n |
|
) |
| ((x) & (-n)) |
◆ round_up
#define round_up |
( |
|
x, |
|
|
|
n |
|
) |
| (((x) + (n)-1) & (-n)) |
◆ count_leading_zeros()
static uint32_t count_leading_zeros |
( |
const uint32_t |
x | ) |
|
|
inlinestatic |
◆ int_log2()
static uint32_t int_log2 |
( |
const uint32_t |
x | ) |
|
|
inlinestatic |
◆ popcount32()
static size_t popcount32 |
( |
uintmax_t |
num | ) |
|
|
inlinestatic |