FFmpeg  4.0
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"

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

◆ 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)
#define BUF_SIZE
Definition: fixed_dsp.c:27
static av_const int sign_extend(int val, unsigned bits)
Definition: mathops.h:130
#define rnd()
Definition: checkasm.h:100

Definition at line 29 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

Function Documentation

◆ check_vector_fmul()

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

Definition at line 39 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 53 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 67 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 81 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 95 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 119 of file fixed_dsp.c.

Referenced by checkasm_check_fixed_dsp().

◆ checkasm_check_fixed_dsp()

void checkasm_check_fixed_dsp ( void  )

Definition at line 132 of file fixed_dsp.c.