FFmpeg
Macros | Functions
float_dsp.c File Reference
#include <float.h>
#include <stdint.h>
#include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define LEN   256
 
#define ARBITRARY_FMUL_ADD_CONST   0.005
 
#define ARBITRARY_FMUL_WINDOW_CONST   0.008
 
#define ARBITRARY_FMAC_SCALAR_CONST   0.005
 
#define ARBITRARY_DMAC_SCALAR_CONST   0.005
 
#define ARBITRARY_SCALARPRODUCT_CONST   0.2
 

Functions

static void test_vector_fmul (const float *src0, const float *src1)
 
static void test_vector_dmul (const double *src0, const double *src1)
 
static void test_vector_fmul_add (const float *src0, const float *src1, const float *src2)
 
static void test_vector_fmul_scalar (const float *src0, const float *src1)
 
static void test_vector_fmul_window (const float *src0, const float *src1, const float *win)
 
static void test_vector_fmac_scalar (const float *src0, const float *src1, const float *src2)
 
static void test_vector_dmul_scalar (const double *src0, const double *src1)
 
static void test_vector_dmac_scalar (const double *src0, const double *src1, const double *src2)
 
static void test_butterflies_float (const float *src0, const float *src1)
 
static void test_scalarproduct_float (const float *src0, const float *src1)
 
static void test_scalarproduct_double (const double *src0, const double *src1)
 
void checkasm_check_float_dsp (void)
 

Macro Definition Documentation

◆ LEN

#define LEN   256

Definition at line 29 of file float_dsp.c.

◆ ARBITRARY_FMUL_ADD_CONST

#define ARBITRARY_FMUL_ADD_CONST   0.005

Definition at line 77 of file float_dsp.c.

◆ ARBITRARY_FMUL_WINDOW_CONST

#define ARBITRARY_FMUL_WINDOW_CONST   0.008

Definition at line 122 of file float_dsp.c.

◆ ARBITRARY_FMAC_SCALAR_CONST

#define ARBITRARY_FMAC_SCALAR_CONST   0.005

Definition at line 145 of file float_dsp.c.

◆ ARBITRARY_DMAC_SCALAR_CONST

#define ARBITRARY_DMAC_SCALAR_CONST   0.005

Definition at line 193 of file float_dsp.c.

◆ ARBITRARY_SCALARPRODUCT_CONST

#define ARBITRARY_SCALARPRODUCT_CONST   0.2

Definition at line 252 of file float_dsp.c.

Function Documentation

◆ test_vector_fmul()

static void test_vector_fmul ( const float src0,
const float src1 
)
static

Definition at line 31 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmul()

static void test_vector_dmul ( const double src0,
const double src1 
)
static

Definition at line 54 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_add()

static void test_vector_fmul_add ( const float src0,
const float src1,
const float src2 
)
static

Definition at line 78 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_scalar()

static void test_vector_fmul_scalar ( const float src0,
const float src1 
)
static

Definition at line 100 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmul_window()

static void test_vector_fmul_window ( const float src0,
const float src1,
const float win 
)
static

Definition at line 123 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_fmac_scalar()

static void test_vector_fmac_scalar ( const float src0,
const float src1,
const float src2 
)
static

Definition at line 146 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmul_scalar()

static void test_vector_dmul_scalar ( const double src0,
const double src1 
)
static

Definition at line 171 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_vector_dmac_scalar()

static void test_vector_dmac_scalar ( const double src0,
const double src1,
const double src2 
)
static

Definition at line 194 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_butterflies_float()

static void test_butterflies_float ( const float src0,
const float src1 
)
static

Definition at line 218 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_scalarproduct_float()

static void test_scalarproduct_float ( const float src0,
const float src1 
)
static

Definition at line 253 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ test_scalarproduct_double()

static void test_scalarproduct_double ( const double src0,
const double src1 
)
static

Definition at line 269 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ checkasm_check_float_dsp()

void checkasm_check_float_dsp ( void  )

Definition at line 285 of file float_dsp.c.