Common integer functions.
More...
|
#define | VLC_CLIP(v, min, max) __MIN(__MAX((v), (min)), (max)) |
|
|
static size_t | vlc_align (size_t v, size_t align) |
| Make integer v a multiple of align.
|
|
static int64_t | GCD (int64_t a, int64_t b) |
| Greatest common divisor.
|
|
static uint8_t | clip_uint8_vlc (int32_t a) |
|
Common integer functions.
◆ VLC_CLIP
#define VLC_CLIP |
( |
|
v, |
|
|
|
min, |
|
|
|
max |
|
) |
| __MIN(__MAX((v), (min)), (max)) |
◆ clip_uint8_vlc()
static uint8_t clip_uint8_vlc |
( |
int32_t |
a | ) |
|
|
inlinestatic |
◆ GCD()
static int64_t GCD |
( |
int64_t |
a, |
|
|
int64_t |
b |
|
) |
| |
|
inlinestatic |
◆ vlc_align()
static size_t vlc_align |
( |
size_t |
v, |
|
|
size_t |
align |
|
) |
| |
|
inlinestatic |
Make integer v a multiple of align.
- Note
- align must be a power of 2