FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
float_dsp.c File Reference
#include "config.h"
#include <float.h>
#include <stdint.h>
#include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define LEN   256
 
#define randomize_buffer(buf)
 
#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_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)
 
void checkasm_check_float_dsp (void)
 

Macro Definition Documentation

#define LEN   256
#define randomize_buffer (   buf)
Value:
do { \
int i; \
double bmg[2], stddev = 10.0, mean = 0.0; \
for (i = 0; i < LEN; i += 2) { \
buf[i] = bmg[0] * stddev + mean; \
buf[i + 1] = bmg[1] * stddev + mean; \
} \
} while(0);
void av_bmg_get(AVLFG *lfg, double out[2])
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued...
Definition: lfg.c:49
AVLFG checkasm_lfg
Definition: checkasm.c:256
void * buf
Definition: avisynth_c.h:690
#define LEN
Definition: float_dsp.c:28
int
for(j=16;j >0;--j)

Definition at line 30 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

#define ARBITRARY_FMUL_ADD_CONST   0.005

Definition at line 64 of file float_dsp.c.

Referenced by test_vector_fmul_add().

#define ARBITRARY_FMUL_WINDOW_CONST   0.008

Definition at line 108 of file float_dsp.c.

Referenced by test_vector_fmul_window().

#define ARBITRARY_FMAC_SCALAR_CONST   0.005

Definition at line 131 of file float_dsp.c.

Referenced by test_vector_fmac_scalar().

#define ARBITRARY_DMAC_SCALAR_CONST   0.005

Definition at line 179 of file float_dsp.c.

Referenced by test_vector_dmac_scalar().

#define ARBITRARY_SCALARPRODUCT_CONST   0.2

Definition at line 238 of file float_dsp.c.

Referenced by test_scalarproduct_float().

Function Documentation

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

Definition at line 42 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 65 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 87 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 109 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 132 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 157 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 180 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 204 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

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

Definition at line 239 of file float_dsp.c.

Referenced by checkasm_check_float_dsp().

void checkasm_check_float_dsp ( void  )

Definition at line 255 of file float_dsp.c.