Common integer functions.
More...
|
| 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 ) |
◆ clip_uint8_vlc()
| uint8_t clip_uint8_vlc |
( |
int32_t | a | ) |
|
|
inlinestatic |
◆ GCD()
| int64_t GCD |
( |
int64_t | a, |
|
|
int64_t | b ) |
|
inlinestatic |
◆ vlc_align()
| 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