FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
intmath.h File Reference
#include <stdint.h>
#include "config.h"
#include "attributes.h"

Go to the source code of this file.

Macros

#define ff_log2   ff_log2_c
 
#define ff_log2_16bit   ff_log2_16bit_c
 
#define av_log2   ff_log2
 
#define av_log2_16bit   ff_log2_16bit
 
#define ff_ctz   ff_ctz_c
 
#define ff_ctzll   ff_ctzll_c
 
#define ff_clz   ff_clz_c
 
#define av_parity   __builtin_parity
 

Functions

static av_always_inline
av_const int 
ff_log2_c (unsigned int v)
 
static av_always_inline
av_const int 
ff_log2_16bit_c (unsigned int v)
 
static av_always_inline
av_const int 
ff_ctz_c (int v)
 Trailing zero bit count. More...
 
static av_always_inline
av_const int 
ff_ctzll_c (long long v)
 
static av_always_inline
av_const unsigned 
ff_clz_c (unsigned x)
 

Variables

const uint8_t ff_log2_tab [256]
 

Macro Definition Documentation

#define ff_log2   ff_log2_c
#define ff_log2_16bit   ff_log2_16bit_c

Definition at line 69 of file intmath.h.

Referenced by av_log2_16bit().

#define av_log2   ff_log2

Definition at line 83 of file intmath.h.

#define av_log2_16bit   ff_log2_16bit

Definition at line 84 of file intmath.h.

Function Documentation

static av_always_inline av_const int ff_log2_c ( unsigned int  v)
static

Definition at line 51 of file intmath.h.

static av_always_inline av_const int ff_log2_16bit_c ( unsigned int  v)
static

Definition at line 70 of file intmath.h.

Variable Documentation

const uint8_t ff_log2_tab[256]