VLC 4.0.0-dev
|
Macros | |
#define | VLC_INT_FUNC(basename) |
#define | VLC_INT_FUNC_TYPE(basename, type, suffix) |
#define | VLC_INT_GENERIC(func, x) |
#define | clz(x) |
Count leading zeroes. More... | |
#define | ctz(x) VLC_INT_GENERIC(vlc_ctz, x) |
Count trailing zeroes. More... | |
#define | parity(x) VLC_INT_GENERIC(vlc_parity, x) |
Parity. More... | |
#define | vlc_popcount(x) |
Bit weight / population count. More... | |
Functions | |
static int | vlc_clzll (unsigned long long x) |
static int | vlc_clzl (unsigned long x) |
static int | vlc_clz (unsigned x) |
static int | vlc_ctz_generic (unsigned long long x) |
static int | vlc_parity_generic (unsigned long long x) |
static int | vlc_popcount_generic (unsigned long long x) |
static int | vlc_ctz (unsigned x) |
static int | vlc_ctzl (unsigned long x) |
static int | vlc_ctzll (unsigned long long x) |
static int | vlc_parity (unsigned x) |
static int | vlc_parityl (unsigned long x) |
static int | vlc_parityll (unsigned long long x) |
static int | vlc_popcount (unsigned x) |
static int | vlc_popcountl (unsigned long x) |
static int | vlc_popcountll (unsigned long long x) |
static uint16_t | vlc_bswap16 (uint16_t x) |
Byte swap (16 bits) More... | |
static uint32_t | vlc_bswap32 (uint32_t x) |
Byte swap (32 bits) More... | |
static uint64_t | vlc_bswap64 (uint64_t x) |
Byte swap (64 bits) More... | |
#define clz | ( | x | ) |
Count leading zeroes.
This function counts the number of consecutive zero (clear) bits down from the highest order bit in an unsigned integer.
x | a non-zero integer |
#define ctz | ( | x | ) | VLC_INT_GENERIC(vlc_ctz, x) |
Count trailing zeroes.
This function counts the number of consecutive zero bits up from the lowest order bit in an unsigned integer.
x | a non-zero integer |
#define parity | ( | x | ) | VLC_INT_GENERIC(vlc_parity, x) |
Parity.
This function determines the parity of an integer.
0 | if x has an even number of set bits. |
1 | if x has an odd number of set bits. |
#define VLC_INT_FUNC | ( | basename | ) |
#define VLC_INT_FUNC_TYPE | ( | basename, | |
type, | |||
suffix | |||
) |
#define VLC_INT_GENERIC | ( | func, | |
x | |||
) |
#define vlc_popcount | ( | x | ) |
Bit weight / population count.
This function counts the number of non-zero bits in an integer.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References vlc_clzll().
|
inlinestatic |
References vlc_clzll().
|
inlinestatic |
Referenced by vlc_clz(), and vlc_clzl().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References count.
|
inlinestatic |
|
inlinestatic |