FFmpeg
Loading...
Searching...
No Matches
float_dsp.c File Reference
#include <float.h>
#include <stdint.h>
#include <string.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 30 of file float_dsp.c.

◆ ARBITRARY_FMUL_ADD_CONST

#define ARBITRARY_FMUL_ADD_CONST   0.005

Definition at line 78 of file float_dsp.c.

Referenced by test_vector_fmul_add().

◆ ARBITRARY_FMUL_WINDOW_CONST

#define ARBITRARY_FMUL_WINDOW_CONST   0.008

Definition at line 123 of file float_dsp.c.

Referenced by test_vector_fmul_window().

◆ ARBITRARY_FMAC_SCALAR_CONST

#define ARBITRARY_FMAC_SCALAR_CONST   0.005

Definition at line 146 of file float_dsp.c.

Referenced by test_vector_fmac_scalar().

◆ ARBITRARY_DMAC_SCALAR_CONST

#define ARBITRARY_DMAC_SCALAR_CONST   0.005

Definition at line 194 of file float_dsp.c.

Referenced by test_vector_dmac_scalar().

◆ ARBITRARY_SCALARPRODUCT_CONST

#define ARBITRARY_SCALARPRODUCT_CONST   0.2

Definition at line 253 of file float_dsp.c.

Referenced by test_scalarproduct_double(), and test_scalarproduct_float().

Function Documentation

◆ test_vector_fmul()

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

Definition at line 32 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 55 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 79 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 101 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 124 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 147 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 172 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 195 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 219 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 254 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 270 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

◆ checkasm_check_float_dsp()

void checkasm_check_float_dsp ( void )

Definition at line 286 of file float_dsp.c.