#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.
|
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) |
|
void | checkasm_check_float_dsp (void) |
|
◆ LEN
◆ randomize_buffer
#define randomize_buffer |
( |
|
buf | ) |
|
Value:do { \
double bmg[2], stddev = 10.0, mean = 0.0;
\
buf[
i] = bmg[0] * stddev + mean; \
buf[
i + 1] = bmg[1] * stddev + mean; \
} \
} while(0);
Definition at line 30 of file float_dsp.c.
◆ ARBITRARY_FMUL_ADD_CONST
#define ARBITRARY_FMUL_ADD_CONST 0.005 |
◆ ARBITRARY_FMUL_WINDOW_CONST
#define ARBITRARY_FMUL_WINDOW_CONST 0.008 |
◆ ARBITRARY_FMAC_SCALAR_CONST
#define ARBITRARY_FMAC_SCALAR_CONST 0.005 |
◆ ARBITRARY_DMAC_SCALAR_CONST
#define ARBITRARY_DMAC_SCALAR_CONST 0.005 |
◆ ARBITRARY_SCALARPRODUCT_CONST
#define ARBITRARY_SCALARPRODUCT_CONST 0.2 |
◆ test_vector_fmul()
static void test_vector_fmul |
( |
const float * |
src0, |
|
|
const float * |
src1 |
|
) |
| |
|
static |
◆ test_vector_dmul()
static void test_vector_dmul |
( |
const double * |
src0, |
|
|
const double * |
src1 |
|
) |
| |
|
static |
◆ test_vector_fmul_add()
static void test_vector_fmul_add |
( |
const float * |
src0, |
|
|
const float * |
src1, |
|
|
const float * |
src2 |
|
) |
| |
|
static |
◆ test_vector_fmul_scalar()
static void test_vector_fmul_scalar |
( |
const float * |
src0, |
|
|
const float * |
src1 |
|
) |
| |
|
static |
◆ test_vector_fmul_window()
static void test_vector_fmul_window |
( |
const float * |
src0, |
|
|
const float * |
src1, |
|
|
const float * |
win |
|
) |
| |
|
static |
◆ test_vector_fmac_scalar()
static void test_vector_fmac_scalar |
( |
const float * |
src0, |
|
|
const float * |
src1, |
|
|
const float * |
src2 |
|
) |
| |
|
static |
◆ test_vector_dmul_scalar()
static void test_vector_dmul_scalar |
( |
const double * |
src0, |
|
|
const double * |
src1 |
|
) |
| |
|
static |
◆ test_vector_dmac_scalar()
static void test_vector_dmac_scalar |
( |
const double * |
src0, |
|
|
const double * |
src1, |
|
|
const double * |
src2 |
|
) |
| |
|
static |
◆ test_butterflies_float()
static void test_butterflies_float |
( |
const float * |
src0, |
|
|
const float * |
src1 |
|
) |
| |
|
static |
◆ test_scalarproduct_float()
static void test_scalarproduct_float |
( |
const float * |
src0, |
|
|
const float * |
src1 |
|
) |
| |
|
static |
◆ checkasm_check_float_dsp()
void checkasm_check_float_dsp |
( |
void |
| ) |
|