FFmpeg
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

#define randomize_buffers (   size)
Value:
do { \
for (i = 0; i < size; i++) { \
uint16_t r = rnd(); \
AV_WN16A(buf0 + i, r); \
AV_WN16A(buf1 + i, r); \
} \
} while (0)
ptrdiff_t size
Definition: opengl_enc.c:100
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:259
const char * r
Definition: vf_curves.c:114
#define AV_WN16A(p, v)
Definition: intreadwrite.h:534
int
#define rnd()
Definition: checkasm.h:106
for(j=16;j >0;--j)

Definition at line 31 of file blockdsp.c.

#define check_clear (   func,
  size 
)
Value:
do { \
if (check_func(h.func, "blockdsp." #func)) { \
call_ref(buf0); \
call_new(buf1); \
if (memcmp(buf0, buf1, sizeof(*buf0) * size)) \
fail(); \
bench_new(buf0); \
} \
} while (0)
The exact code depends on how similar the blocks are and how related they are to the block
ptrdiff_t size
Definition: opengl_enc.c:100
#define fail()
Definition: checkasm.h:122
#define randomize_buffers(size)
Definition: blockdsp.c:31
#define declare_func_emms(cpu_flags, ret,...)
Definition: checkasm.h:119
if(ret)
#define call_ref(...)
Definition: checkasm.h:128
#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:113
#define bench_new(...)
Definition: checkasm.h:255
#define call_new(...)
Definition: checkasm.h:195

Definition at line 41 of file blockdsp.c.

Referenced by checkasm_check_blockdsp().

Function Documentation

void checkasm_check_blockdsp ( void  )

Definition at line 54 of file blockdsp.c.