FFmpeg
Macros | Functions
stdbit.h File Reference
#include <stdbool.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define __STDC_VERSION_STDBIT_H__   202311L
 
#define __STDC_ENDIAN_LITTLE__   1234
 
#define __STDC_ENDIAN_BIG__   4321
 
#define __stdbit_generic_type_func(func, value)
 
#define stdc_leading_zeros(value)   __stdbit_generic_type_func(leading_zeros, value)
 
#define stdc_leading_ones(value)   __stdbit_generic_type_func(leading_ones, value)
 
#define stdc_trailing_zeros(value)   __stdbit_generic_type_func(trailing_zeros, value)
 
#define stdc_trailing_ones(value)   __stdbit_generic_type_func(trailing_ones, value)
 
#define stdc_first_leading_one(value)   __stdbit_generic_type_func(first_leading_one, value)
 
#define stdc_first_leading_zero(value)   __stdbit_generic_type_func(first_leading_zero, value)
 
#define stdc_first_trailing_one(value)   __stdbit_generic_type_func(first_trailing_one, value)
 
#define stdc_first_trailing_zero(value)   __stdbit_generic_type_func(first_trailing_zero, value)
 
#define stdc_count_ones(value)   __stdbit_generic_type_func(count_ones, value)
 
#define stdc_count_zeros(value)   __stdbit_generic_type_func(count_zeros, value)
 
#define stdc_has_single_bit(value)   __stdbit_generic_type_func(has_single_bit, value)
 
#define stdc_bit_width(value)   __stdbit_generic_type_func(bit_width, value)
 
#define stdc_bit_floor(value)   __stdbit_generic_type_func(bit_floor, value)
 
#define stdc_bit_ceil(value)   __stdbit_generic_type_func(bit_ceil, value)
 

Functions

static unsigned int stdc_leading_zeros_ull (unsigned long long value)
 
static unsigned int stdc_leading_zeros_ul (unsigned long value)
 
static unsigned int stdc_leading_zeros_ui (unsigned int value)
 
static unsigned int stdc_leading_zeros_us (unsigned short value)
 
static unsigned int stdc_leading_zeros_uc (unsigned char value)
 
static unsigned int stdc_leading_ones_ull (unsigned long long value)
 
static unsigned int stdc_leading_ones_ul (unsigned long value)
 
static unsigned int stdc_leading_ones_ui (unsigned int value)
 
static unsigned int stdc_leading_ones_us (unsigned short value)
 
static unsigned int stdc_leading_ones_uc (unsigned char value)
 
static unsigned int stdc_trailing_zeros_ull (unsigned long long value)
 
static unsigned int stdc_trailing_zeros_ul (unsigned long value)
 
static unsigned int stdc_trailing_zeros_ui (unsigned int value)
 
static unsigned int stdc_trailing_zeros_us (unsigned short value)
 
static unsigned int stdc_trailing_zeros_uc (unsigned char value)
 
static unsigned int stdc_trailing_ones_ull (unsigned long long value)
 
static unsigned int stdc_trailing_ones_ul (unsigned long value)
 
static unsigned int stdc_trailing_ones_ui (unsigned int value)
 
static unsigned int stdc_trailing_ones_us (unsigned short value)
 
static unsigned int stdc_trailing_ones_uc (unsigned char value)
 
static unsigned int stdc_first_leading_one_ull (unsigned long long value)
 
static unsigned int stdc_first_leading_one_ul (unsigned long value)
 
static unsigned int stdc_first_leading_one_ui (unsigned int value)
 
static unsigned int stdc_first_leading_one_us (unsigned short value)
 
static unsigned int stdc_first_leading_one_uc (unsigned char value)
 
static unsigned int stdc_first_leading_zero_ull (unsigned long long value)
 
static unsigned int stdc_first_leading_zero_ul (unsigned long value)
 
static unsigned int stdc_first_leading_zero_ui (unsigned int value)
 
static unsigned int stdc_first_leading_zero_us (unsigned short value)
 
static unsigned int stdc_first_leading_zero_uc (unsigned char value)
 
static unsigned int stdc_first_trailing_one_ull (unsigned long long value)
 
static unsigned int stdc_first_trailing_one_ul (unsigned long value)
 
static unsigned int stdc_first_trailing_one_ui (unsigned int value)
 
static unsigned int stdc_first_trailing_one_us (unsigned short value)
 
static unsigned int stdc_first_trailing_one_uc (unsigned char value)
 
static unsigned int stdc_first_trailing_zero_ull (unsigned long long value)
 
static unsigned int stdc_first_trailing_zero_ul (unsigned long value)
 
static unsigned int stdc_first_trailing_zero_ui (unsigned int value)
 
static unsigned int stdc_first_trailing_zero_us (unsigned short value)
 
static unsigned int stdc_first_trailing_zero_uc (unsigned char value)
 
static unsigned int stdc_count_ones_ull (unsigned long long value)
 
static unsigned int stdc_count_ones_ul (unsigned long value)
 
static unsigned int stdc_count_ones_ui (unsigned int value)
 
static unsigned int stdc_count_ones_us (unsigned short value)
 
static unsigned int stdc_count_ones_uc (unsigned char value)
 
static unsigned int stdc_count_zeros_ull (unsigned long long value)
 
static unsigned int stdc_count_zeros_ul (unsigned long value)
 
static unsigned int stdc_count_zeros_ui (unsigned int value)
 
static unsigned int stdc_count_zeros_us (unsigned short value)
 
static unsigned int stdc_count_zeros_uc (unsigned char value)
 
static bool stdc_has_single_bit_ull (unsigned long long value)
 
static bool stdc_has_single_bit_ul (unsigned long value)
 
static bool stdc_has_single_bit_ui (unsigned int value)
 
static bool stdc_has_single_bit_us (unsigned short value)
 
static bool stdc_has_single_bit_uc (unsigned char value)
 
static unsigned int stdc_bit_width_ull (unsigned long long value)
 
static unsigned int stdc_bit_width_ul (unsigned long value)
 
static unsigned int stdc_bit_width_ui (unsigned int value)
 
static unsigned int stdc_bit_width_us (unsigned short value)
 
static unsigned int stdc_bit_width_uc (unsigned char value)
 
static unsigned long long stdc_bit_floor_ull (unsigned long long value)
 
static unsigned long stdc_bit_floor_ul (unsigned long value)
 
static unsigned int stdc_bit_floor_ui (unsigned int value)
 
static unsigned short stdc_bit_floor_us (unsigned short value)
 
static unsigned int stdc_bit_floor_uc (unsigned char value)
 
static unsigned long long stdc_bit_ceil_ull (unsigned long long value)
 
static unsigned long stdc_bit_ceil_ul (unsigned long value)
 
static unsigned int stdc_bit_ceil_ui (unsigned int value)
 
static unsigned short stdc_bit_ceil_us (unsigned short value)
 
static unsigned int stdc_bit_ceil_uc (unsigned char value)
 

Macro Definition Documentation

◆ __STDC_VERSION_STDBIT_H__

#define __STDC_VERSION_STDBIT_H__   202311L

Definition at line 20 of file stdbit.h.

◆ __STDC_ENDIAN_LITTLE__

#define __STDC_ENDIAN_LITTLE__   1234

Definition at line 25 of file stdbit.h.

◆ __STDC_ENDIAN_BIG__

#define __STDC_ENDIAN_BIG__   4321

Definition at line 26 of file stdbit.h.

◆ __stdbit_generic_type_func

#define __stdbit_generic_type_func (   func,
  value 
)
Value:
_Generic (value, \
unsigned long long: stdc_##func##_ull((unsigned long long)(value)), \
unsigned long: stdc_##func##_ul((unsigned long)(value)), \
unsigned int: stdc_##func##_ui((unsigned int)(value)), \
unsigned short: stdc_##func##_us((unsigned short)(value)), \
unsigned char: stdc_##func##_uc((unsigned char)(value)))

Definition at line 42 of file stdbit.h.

◆ stdc_leading_zeros

#define stdc_leading_zeros (   value)    __stdbit_generic_type_func(leading_zeros, value)

Definition at line 116 of file stdbit.h.

◆ stdc_leading_ones

#define stdc_leading_ones (   value)    __stdbit_generic_type_func(leading_ones, value)

Definition at line 144 of file stdbit.h.

◆ stdc_trailing_zeros

#define stdc_trailing_zeros (   value)    __stdbit_generic_type_func(trailing_zeros, value)

Definition at line 220 of file stdbit.h.

◆ stdc_trailing_ones

#define stdc_trailing_ones (   value)    __stdbit_generic_type_func(trailing_ones, value)

Definition at line 248 of file stdbit.h.

◆ stdc_first_leading_one

#define stdc_first_leading_one (   value)    __stdbit_generic_type_func(first_leading_one, value)

Definition at line 276 of file stdbit.h.

◆ stdc_first_leading_zero

#define stdc_first_leading_zero (   value)    __stdbit_generic_type_func(first_leading_zero, value)

Definition at line 304 of file stdbit.h.

◆ stdc_first_trailing_one

#define stdc_first_trailing_one (   value)    __stdbit_generic_type_func(first_trailing_one, value)

Definition at line 359 of file stdbit.h.

◆ stdc_first_trailing_zero

#define stdc_first_trailing_zero (   value)    __stdbit_generic_type_func(first_trailing_zero, value)

Definition at line 387 of file stdbit.h.

◆ stdc_count_ones

#define stdc_count_ones (   value)    __stdbit_generic_type_func(count_ones, value)

Definition at line 455 of file stdbit.h.

◆ stdc_count_zeros

#define stdc_count_zeros (   value)    __stdbit_generic_type_func(count_zeros, value)

Definition at line 483 of file stdbit.h.

◆ stdc_has_single_bit

#define stdc_has_single_bit (   value)    __stdbit_generic_type_func(has_single_bit, value)

Definition at line 511 of file stdbit.h.

◆ stdc_bit_width

#define stdc_bit_width (   value)    __stdbit_generic_type_func(bit_width, value)

Definition at line 539 of file stdbit.h.

◆ stdc_bit_floor

#define stdc_bit_floor (   value)    __stdbit_generic_type_func(bit_floor, value)

Definition at line 567 of file stdbit.h.

◆ stdc_bit_ceil

#define stdc_bit_ceil (   value)    __stdbit_generic_type_func(bit_ceil, value)

Definition at line 596 of file stdbit.h.

Function Documentation

◆ stdc_leading_zeros_ull()

static unsigned int stdc_leading_zeros_ull ( unsigned long long  value)
inlinestatic

Definition at line 51 of file stdbit.h.

Referenced by stdc_bit_width_ull(), stdc_first_leading_one_ull(), and stdc_leading_ones_ull().

◆ stdc_leading_zeros_ul()

static unsigned int stdc_leading_zeros_ul ( unsigned long  value)
inlinestatic

Definition at line 56 of file stdbit.h.

Referenced by stdc_bit_width_ul(), stdc_first_leading_one_ul(), and stdc_leading_ones_ul().

◆ stdc_leading_zeros_ui()

static unsigned int stdc_leading_zeros_ui ( unsigned int  value)
inlinestatic

◆ stdc_leading_zeros_us()

static unsigned int stdc_leading_zeros_us ( unsigned short  value)
inlinestatic

Definition at line 66 of file stdbit.h.

Referenced by stdc_bit_width_us(), stdc_first_leading_one_us(), and stdc_leading_ones_us().

◆ stdc_leading_zeros_uc()

static unsigned int stdc_leading_zeros_uc ( unsigned char  value)
inlinestatic

Definition at line 72 of file stdbit.h.

Referenced by stdc_bit_width_uc(), stdc_first_leading_one_uc(), and stdc_leading_ones_uc().

◆ stdc_leading_ones_ull()

static unsigned int stdc_leading_ones_ull ( unsigned long long  value)
inlinestatic

Definition at line 119 of file stdbit.h.

Referenced by stdc_first_leading_zero_ull().

◆ stdc_leading_ones_ul()

static unsigned int stdc_leading_ones_ul ( unsigned long  value)
inlinestatic

Definition at line 124 of file stdbit.h.

Referenced by stdc_first_leading_zero_ul().

◆ stdc_leading_ones_ui()

static unsigned int stdc_leading_ones_ui ( unsigned int  value)
inlinestatic

Definition at line 129 of file stdbit.h.

Referenced by stdc_first_leading_zero_ui().

◆ stdc_leading_ones_us()

static unsigned int stdc_leading_ones_us ( unsigned short  value)
inlinestatic

Definition at line 134 of file stdbit.h.

Referenced by stdc_first_leading_zero_us().

◆ stdc_leading_ones_uc()

static unsigned int stdc_leading_ones_uc ( unsigned char  value)
inlinestatic

Definition at line 139 of file stdbit.h.

Referenced by stdc_first_leading_zero_uc().

◆ stdc_trailing_zeros_ull()

static unsigned int stdc_trailing_zeros_ull ( unsigned long long  value)
inlinestatic

Definition at line 148 of file stdbit.h.

Referenced by stdc_trailing_ones_ull().

◆ stdc_trailing_zeros_ul()

static unsigned int stdc_trailing_zeros_ul ( unsigned long  value)
inlinestatic

Definition at line 154 of file stdbit.h.

Referenced by stdc_trailing_ones_ul().

◆ stdc_trailing_zeros_ui()

static unsigned int stdc_trailing_zeros_ui ( unsigned int  value)
inlinestatic

Definition at line 160 of file stdbit.h.

Referenced by stdc_trailing_ones_ui().

◆ stdc_trailing_zeros_us()

static unsigned int stdc_trailing_zeros_us ( unsigned short  value)
inlinestatic

Definition at line 166 of file stdbit.h.

Referenced by stdc_trailing_ones_us().

◆ stdc_trailing_zeros_uc()

static unsigned int stdc_trailing_zeros_uc ( unsigned char  value)
inlinestatic

Definition at line 172 of file stdbit.h.

Referenced by stdc_trailing_ones_uc().

◆ stdc_trailing_ones_ull()

static unsigned int stdc_trailing_ones_ull ( unsigned long long  value)
inlinestatic

Definition at line 223 of file stdbit.h.

◆ stdc_trailing_ones_ul()

static unsigned int stdc_trailing_ones_ul ( unsigned long  value)
inlinestatic

Definition at line 228 of file stdbit.h.

◆ stdc_trailing_ones_ui()

static unsigned int stdc_trailing_ones_ui ( unsigned int  value)
inlinestatic

Definition at line 233 of file stdbit.h.

◆ stdc_trailing_ones_us()

static unsigned int stdc_trailing_ones_us ( unsigned short  value)
inlinestatic

Definition at line 238 of file stdbit.h.

◆ stdc_trailing_ones_uc()

static unsigned int stdc_trailing_ones_uc ( unsigned char  value)
inlinestatic

Definition at line 243 of file stdbit.h.

◆ stdc_first_leading_one_ull()

static unsigned int stdc_first_leading_one_ull ( unsigned long long  value)
inlinestatic

Definition at line 251 of file stdbit.h.

◆ stdc_first_leading_one_ul()

static unsigned int stdc_first_leading_one_ul ( unsigned long  value)
inlinestatic

Definition at line 256 of file stdbit.h.

◆ stdc_first_leading_one_ui()

static unsigned int stdc_first_leading_one_ui ( unsigned int  value)
inlinestatic

Definition at line 261 of file stdbit.h.

◆ stdc_first_leading_one_us()

static unsigned int stdc_first_leading_one_us ( unsigned short  value)
inlinestatic

Definition at line 266 of file stdbit.h.

◆ stdc_first_leading_one_uc()

static unsigned int stdc_first_leading_one_uc ( unsigned char  value)
inlinestatic

Definition at line 271 of file stdbit.h.

◆ stdc_first_leading_zero_ull()

static unsigned int stdc_first_leading_zero_ull ( unsigned long long  value)
inlinestatic

Definition at line 279 of file stdbit.h.

◆ stdc_first_leading_zero_ul()

static unsigned int stdc_first_leading_zero_ul ( unsigned long  value)
inlinestatic

Definition at line 284 of file stdbit.h.

◆ stdc_first_leading_zero_ui()

static unsigned int stdc_first_leading_zero_ui ( unsigned int  value)
inlinestatic

Definition at line 289 of file stdbit.h.

◆ stdc_first_leading_zero_us()

static unsigned int stdc_first_leading_zero_us ( unsigned short  value)
inlinestatic

Definition at line 294 of file stdbit.h.

◆ stdc_first_leading_zero_uc()

static unsigned int stdc_first_leading_zero_uc ( unsigned char  value)
inlinestatic

Definition at line 299 of file stdbit.h.

◆ stdc_first_trailing_one_ull()

static unsigned int stdc_first_trailing_one_ull ( unsigned long long  value)
inlinestatic

Definition at line 308 of file stdbit.h.

Referenced by stdc_first_trailing_zero_ull().

◆ stdc_first_trailing_one_ul()

static unsigned int stdc_first_trailing_one_ul ( unsigned long  value)
inlinestatic

Definition at line 313 of file stdbit.h.

Referenced by stdc_first_trailing_zero_ul().

◆ stdc_first_trailing_one_ui()

static unsigned int stdc_first_trailing_one_ui ( unsigned int  value)
inlinestatic

Definition at line 318 of file stdbit.h.

Referenced by stdc_first_trailing_zero_ui().

◆ stdc_first_trailing_one_us()

static unsigned int stdc_first_trailing_one_us ( unsigned short  value)
inlinestatic

Definition at line 323 of file stdbit.h.

Referenced by stdc_first_trailing_zero_us().

◆ stdc_first_trailing_one_uc()

static unsigned int stdc_first_trailing_one_uc ( unsigned char  value)
inlinestatic

Definition at line 328 of file stdbit.h.

Referenced by stdc_first_trailing_zero_uc().

◆ stdc_first_trailing_zero_ull()

static unsigned int stdc_first_trailing_zero_ull ( unsigned long long  value)
inlinestatic

Definition at line 362 of file stdbit.h.

◆ stdc_first_trailing_zero_ul()

static unsigned int stdc_first_trailing_zero_ul ( unsigned long  value)
inlinestatic

Definition at line 367 of file stdbit.h.

◆ stdc_first_trailing_zero_ui()

static unsigned int stdc_first_trailing_zero_ui ( unsigned int  value)
inlinestatic

Definition at line 372 of file stdbit.h.

◆ stdc_first_trailing_zero_us()

static unsigned int stdc_first_trailing_zero_us ( unsigned short  value)
inlinestatic

Definition at line 377 of file stdbit.h.

◆ stdc_first_trailing_zero_uc()

static unsigned int stdc_first_trailing_zero_uc ( unsigned char  value)
inlinestatic

Definition at line 382 of file stdbit.h.

◆ stdc_count_ones_ull()

static unsigned int stdc_count_ones_ull ( unsigned long long  value)
inlinestatic

Definition at line 391 of file stdbit.h.

Referenced by stdc_count_zeros_ull().

◆ stdc_count_ones_ul()

static unsigned int stdc_count_ones_ul ( unsigned long  value)
inlinestatic

Definition at line 396 of file stdbit.h.

Referenced by stdc_count_zeros_ul().

◆ stdc_count_ones_ui()

static unsigned int stdc_count_ones_ui ( unsigned int  value)
inlinestatic

Definition at line 401 of file stdbit.h.

Referenced by stdc_count_zeros_ui().

◆ stdc_count_ones_us()

static unsigned int stdc_count_ones_us ( unsigned short  value)
inlinestatic

Definition at line 406 of file stdbit.h.

Referenced by stdc_count_zeros_us().

◆ stdc_count_ones_uc()

static unsigned int stdc_count_ones_uc ( unsigned char  value)
inlinestatic

Definition at line 411 of file stdbit.h.

Referenced by stdc_count_zeros_uc().

◆ stdc_count_zeros_ull()

static unsigned int stdc_count_zeros_ull ( unsigned long long  value)
inlinestatic

Definition at line 458 of file stdbit.h.

◆ stdc_count_zeros_ul()

static unsigned int stdc_count_zeros_ul ( unsigned long  value)
inlinestatic

Definition at line 463 of file stdbit.h.

◆ stdc_count_zeros_ui()

static unsigned int stdc_count_zeros_ui ( unsigned int  value)
inlinestatic

Definition at line 468 of file stdbit.h.

◆ stdc_count_zeros_us()

static unsigned int stdc_count_zeros_us ( unsigned short  value)
inlinestatic

Definition at line 473 of file stdbit.h.

◆ stdc_count_zeros_uc()

static unsigned int stdc_count_zeros_uc ( unsigned char  value)
inlinestatic

Definition at line 478 of file stdbit.h.

◆ stdc_has_single_bit_ull()

static bool stdc_has_single_bit_ull ( unsigned long long  value)
inlinestatic

Definition at line 486 of file stdbit.h.

◆ stdc_has_single_bit_ul()

static bool stdc_has_single_bit_ul ( unsigned long  value)
inlinestatic

Definition at line 491 of file stdbit.h.

◆ stdc_has_single_bit_ui()

static bool stdc_has_single_bit_ui ( unsigned int  value)
inlinestatic

Definition at line 496 of file stdbit.h.

◆ stdc_has_single_bit_us()

static bool stdc_has_single_bit_us ( unsigned short  value)
inlinestatic

Definition at line 501 of file stdbit.h.

◆ stdc_has_single_bit_uc()

static bool stdc_has_single_bit_uc ( unsigned char  value)
inlinestatic

Definition at line 506 of file stdbit.h.

◆ stdc_bit_width_ull()

static unsigned int stdc_bit_width_ull ( unsigned long long  value)
inlinestatic

Definition at line 514 of file stdbit.h.

Referenced by stdc_bit_ceil_ull(), and stdc_bit_floor_ull().

◆ stdc_bit_width_ul()

static unsigned int stdc_bit_width_ul ( unsigned long  value)
inlinestatic

Definition at line 519 of file stdbit.h.

Referenced by stdc_bit_ceil_ul(), and stdc_bit_floor_ul().

◆ stdc_bit_width_ui()

static unsigned int stdc_bit_width_ui ( unsigned int  value)
inlinestatic

Definition at line 524 of file stdbit.h.

Referenced by stdc_bit_ceil_ui(), and stdc_bit_floor_ui().

◆ stdc_bit_width_us()

static unsigned int stdc_bit_width_us ( unsigned short  value)
inlinestatic

Definition at line 529 of file stdbit.h.

Referenced by stdc_bit_ceil_us(), and stdc_bit_floor_us().

◆ stdc_bit_width_uc()

static unsigned int stdc_bit_width_uc ( unsigned char  value)
inlinestatic

Definition at line 534 of file stdbit.h.

Referenced by stdc_bit_ceil_uc(), and stdc_bit_floor_uc().

◆ stdc_bit_floor_ull()

static unsigned long long stdc_bit_floor_ull ( unsigned long long  value)
inlinestatic

Definition at line 542 of file stdbit.h.

◆ stdc_bit_floor_ul()

static unsigned long stdc_bit_floor_ul ( unsigned long  value)
inlinestatic

Definition at line 547 of file stdbit.h.

◆ stdc_bit_floor_ui()

static unsigned int stdc_bit_floor_ui ( unsigned int  value)
inlinestatic

Definition at line 552 of file stdbit.h.

◆ stdc_bit_floor_us()

static unsigned short stdc_bit_floor_us ( unsigned short  value)
inlinestatic

Definition at line 557 of file stdbit.h.

◆ stdc_bit_floor_uc()

static unsigned int stdc_bit_floor_uc ( unsigned char  value)
inlinestatic

Definition at line 562 of file stdbit.h.

◆ stdc_bit_ceil_ull()

static unsigned long long stdc_bit_ceil_ull ( unsigned long long  value)
inlinestatic

Definition at line 571 of file stdbit.h.

◆ stdc_bit_ceil_ul()

static unsigned long stdc_bit_ceil_ul ( unsigned long  value)
inlinestatic

Definition at line 576 of file stdbit.h.

◆ stdc_bit_ceil_ui()

static unsigned int stdc_bit_ceil_ui ( unsigned int  value)
inlinestatic

Definition at line 581 of file stdbit.h.

◆ stdc_bit_ceil_us()

static unsigned short stdc_bit_ceil_us ( unsigned short  value)
inlinestatic

Definition at line 586 of file stdbit.h.

◆ stdc_bit_ceil_uc()

static unsigned int stdc_bit_ceil_uc ( unsigned char  value)
inlinestatic

Definition at line 591 of file stdbit.h.

func
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:68
value
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
Definition: writing_filters.txt:86