FFmpeg
Macros | Functions
intmath.h File Reference
#include <stdint.h>
#include <math.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/riscv/cpu.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 ff_ctz   ff_ctz_rv
 
#define ff_ctzll   ff_ctzll_rv
 
#define ff_clz   ff_clz_rv
 
#define ff_log2   ff_log2_rv
 
#define ff_log2_16bit   ff_log2_rv
 
#define av_popcount   av_popcount_rv
 
#define av_popcount64   av_popcount64_rv
 
#define av_parity   av_parity_rv
 

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)
 
static av_const int ff_ctz_rv (int x)
 
static av_const int ff_ctzll_rv (long long x)
 
static av_const int ff_clz_rv (int x)
 
static av_const int ff_log2_rv (unsigned int x)
 
static av_const int av_popcount_rv (unsigned int x)
 
static av_const int av_popcount64_rv (uint64_t x)
 
static av_const int av_parity_rv (unsigned int x)
 

Macro Definition Documentation

◆ av_clip_int8

#define av_clip_int8   av_clip_int8_rvi

Definition at line 35 of file intmath.h.

◆ av_clip_int16

#define av_clip_int16   av_clip_int16_rvi

Definition at line 45 of file intmath.h.

◆ av_clipl_int32

#define av_clipl_int32   av_clipl_int32_rvi

Definition at line 55 of file intmath.h.

◆ av_clip_intp2

#define av_clip_intp2   av_clip_intp2_rvi

Definition at line 65 of file intmath.h.

◆ ff_ctz

#define ff_ctz   ff_ctz_rv

Definition at line 118 of file intmath.h.

◆ ff_ctzll

#define ff_ctzll   ff_ctzll_rv

Definition at line 139 of file intmath.h.

◆ ff_clz

#define ff_clz   ff_clz_rv

Definition at line 164 of file intmath.h.

◆ ff_log2

#define ff_log2   ff_log2_rv

Definition at line 193 of file intmath.h.

◆ ff_log2_16bit

#define ff_log2_16bit   ff_log2_rv

Definition at line 194 of file intmath.h.

◆ av_popcount

#define av_popcount   av_popcount_rv

Definition at line 219 of file intmath.h.

◆ av_popcount64

#define av_popcount64   av_popcount64_rv

Definition at line 240 of file intmath.h.

◆ av_parity

#define av_parity   av_parity_rv

Definition at line 263 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 36 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 46 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 56 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 66 of file intmath.h.

◆ ff_ctz_rv()

static av_const int ff_ctz_rv ( int  x)
inlinestatic

Definition at line 95 of file intmath.h.

◆ ff_ctzll_rv()

static av_const int ff_ctzll_rv ( long long  x)
inlinestatic

Definition at line 120 of file intmath.h.

◆ ff_clz_rv()

static av_const int ff_clz_rv ( int  x)
inlinestatic

Definition at line 141 of file intmath.h.

Referenced by ff_log2_rv().

◆ ff_log2_rv()

static av_const int ff_log2_rv ( unsigned int  x)
inlinestatic

Definition at line 189 of file intmath.h.

◆ av_popcount_rv()

static av_const int av_popcount_rv ( unsigned int  x)
inlinestatic

Definition at line 196 of file intmath.h.

◆ av_popcount64_rv()

static av_const int av_popcount64_rv ( uint64_t  x)
inlinestatic

Definition at line 221 of file intmath.h.

◆ av_parity_rv()

static av_const int av_parity_rv ( unsigned int  x)
inlinestatic

Definition at line 242 of file intmath.h.