FFmpeg  4.0
Macros | Functions
blockdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/blockdsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define randomize_buffers(size)
 
#define check_clear(func, size)
 

Functions

void checkasm_check_blockdsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   size)
Value:
do { \
int i; \
for (i = 0; i < size; i++) { \
uint16_t r = rnd(); \
AV_WN16A(buf0 + i, r); \
AV_WN16A(buf1 + i, r); \
} \
} while (0)
int size
const char * r
Definition: vf_curves.c:111
#define rnd()
Definition: checkasm.h:100

Definition at line 31 of file blockdsp.c.

◆ check_clear

#define check_clear (   func,
  size 
)
Value:
do { \
if (check_func(h.func, "blockdsp." #func)) { \
declare_func_emms(AV_CPU_FLAG_MMX, void, int16_t *block); \
randomize_buffers(size); \
call_ref(buf0); \
call_new(buf1); \
if (memcmp(buf0, buf1, sizeof(*buf0) * size)) \
fail(); \
bench_new(buf0); \
} \
} while (0)
int size
static int16_t block[64]
Definition: dct.c:115
#define AV_CPU_FLAG_MMX
standard MMX
Definition: cpu.h:31
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:67
#define check_func(func,...)
Definition: checkasm.h:107

Definition at line 41 of file blockdsp.c.

Referenced by checkasm_check_blockdsp().

Function Documentation

◆ checkasm_check_blockdsp()

void checkasm_check_blockdsp ( void  )

Definition at line 54 of file blockdsp.c.