FFmpeg
Macros | Functions
fixed_dsp.c File Reference
#include "checkasm.h"
#include "libavutil/common.h"
#include "libavutil/fixed_dsp.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   256
 
#define randomize_buffers()
 

Functions

static void check_vector_fmul (const int *src0, const int *src1)
 
static void check_vector_fmul_add (const int *src0, const int *src1, const int *src2)
 
static void check_vector_fmul_window (const int32_t *src0, const int32_t *src1, const int32_t *win)
 
static void check_vector_fmul_window_scaled (const int32_t *src0, const int32_t *src1, const int32_t *win)
 
static void check_butterflies (const int *src0, const int *src1)
 
static void check_scalarproduct_fixed (const int *src0, const int *src1)
 
void checkasm_check_fixed_dsp (void)
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   256

Definition at line 28 of file fixed_dsp.c.

◆ randomize_buffers

#define randomize_buffers ( )
Value:
do { \
int i; \
for (i = 0; i < BUF_SIZE; i++) { \
src0[i] = sign_extend(rnd(), 24); \
src1[i] = sign_extend(rnd(), 24); \
src2[i] = sign_extend(rnd(), 24); \
} \
} while (0)

Definition at line 30 of file fixed_dsp.c.

Function Documentation

◆ check_vector_fmul()

static void check_vector_fmul ( const int *  src0,
const int *  src1 
)
static

Definition at line 40 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ check_vector_fmul_add()

static void check_vector_fmul_add ( const int *  src0,
const int *  src1,
const int *  src2 
)
static

Definition at line 54 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ check_vector_fmul_window()

static void check_vector_fmul_window ( const int32_t src0,
const int32_t src1,
const int32_t win 
)
static

Definition at line 68 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ check_vector_fmul_window_scaled()

static void check_vector_fmul_window_scaled ( const int32_t src0,
const int32_t src1,
const int32_t win 
)
static

Definition at line 82 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ check_butterflies()

static void check_butterflies ( const int *  src0,
const int *  src1 
)
static

Definition at line 96 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ check_scalarproduct_fixed()

static void check_scalarproduct_fixed ( const int *  src0,
const int *  src1 
)
static

Definition at line 120 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ checkasm_check_fixed_dsp()

void checkasm_check_fixed_dsp ( void  )

Definition at line 133 of file fixed_dsp.c.

BUF_SIZE
#define BUF_SIZE
Definition: fixed_dsp.c:28
rnd
#define rnd()
Definition: checkasm.h:172
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
sign_extend
static av_const int sign_extend(int val, unsigned bits)
Definition: mathops.h:131