FFmpeg
Macros | Functions
intmath.h File Reference
#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"

Go to the source code of this file.

Macros

#define av_clip_int8   av_clip_int8_rvi
 
#define av_clip_int16   av_clip_int16_rvi
 
#define av_clipl_int32   av_clipl_int32_rvi
 
#define av_clip_intp2   av_clip_intp2_rvi
 
#define av_popcount   __builtin_popcount
 
#define av_popcount64   __builtin_popcountll
 

Functions

static av_always_inline av_const int8_t av_clip_int8_rvi (int a)
 
static av_always_inline av_const int16_t av_clip_int16_rvi (int a)
 
static av_always_inline av_const int32_t av_clipl_int32_rvi (int64_t a)
 
static av_always_inline av_const int av_clip_intp2_rvi (int a, int p)
 

Macro Definition Documentation

◆ av_clip_int8

#define av_clip_int8   av_clip_int8_rvi

Definition at line 31 of file intmath.h.

◆ av_clip_int16

#define av_clip_int16   av_clip_int16_rvi

Definition at line 41 of file intmath.h.

◆ av_clipl_int32

#define av_clipl_int32   av_clipl_int32_rvi

Definition at line 51 of file intmath.h.

◆ av_clip_intp2

#define av_clip_intp2   av_clip_intp2_rvi

Definition at line 61 of file intmath.h.

◆ av_popcount

#define av_popcount   __builtin_popcount

Definition at line 73 of file intmath.h.

◆ av_popcount64

#define av_popcount64   __builtin_popcountll

Definition at line 77 of file intmath.h.

Function Documentation

◆ av_clip_int8_rvi()

static av_always_inline av_const int8_t av_clip_int8_rvi ( int  a)
static

Definition at line 32 of file intmath.h.

◆ av_clip_int16_rvi()

static av_always_inline av_const int16_t av_clip_int16_rvi ( int  a)
static

Definition at line 42 of file intmath.h.

◆ av_clipl_int32_rvi()

static av_always_inline av_const int32_t av_clipl_int32_rvi ( int64_t  a)
static

Definition at line 52 of file intmath.h.

◆ av_clip_intp2_rvi()

static av_always_inline av_const int av_clip_intp2_rvi ( int  a,
int  p 
)
static

Definition at line 62 of file intmath.h.