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 | ctz(x) VLC_INT_GENERIC(vlc_ctz, x) |
Count trailing zeroes. | |
#define | parity(x) VLC_INT_GENERIC(vlc_parity, x) |
Parity. | |
#define | vlc_popcount(x) |
Bit weight / population count. | |
Functions | |
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) | |
static uint32_t | vlc_bswap32 (uint32_t x) |
Byte swap (32 bits) | |
static uint64_t | vlc_bswap64 (uint64_t x) |
Byte swap (64 bits) | |
#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 |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References count.
|
inlinestatic |
|
inlinestatic |