FFmpeg
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
 

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

◆ ff_log2

#define ff_log2   ff_log2_c

Definition at line 50 of file intmath.h.

◆ ff_log2_16bit

#define ff_log2_16bit   ff_log2_16bit_c

Definition at line 69 of file intmath.h.

◆ av_log2

#define av_log2   ff_log2

Definition at line 83 of file intmath.h.

◆ av_log2_16bit

#define av_log2_16bit   ff_log2_16bit

Definition at line 84 of file intmath.h.

Function Documentation

◆ ff_log2_c()

static av_always_inline av_const int ff_log2_c ( unsigned int  v)
static

Definition at line 51 of file intmath.h.

◆ ff_log2_16bit_c()

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

◆ ff_log2_tab

const uint8_t ff_log2_tab[256]