FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 { \
int i; \
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:101
const char * r
Definition: vf_curves.c:111
#define AV_WN16A(p, v)
Definition: intreadwrite.h:534
int
#define rnd()
Definition: checkasm.h:100
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)
static int16_t block[64]
Definition: dct.c:115
ptrdiff_t size
Definition: opengl_enc.c:101
#define fail()
Definition: checkasm.h:116
#define randomize_buffers(size)
Definition: blockdsp.c:31
#define declare_func_emms(cpu_flags, ret,...)
Definition: checkasm.h:113
#define call_ref(...)
Definition: checkasm.h:122
#define AV_CPU_FLAG_MMX
standard MMX
Definition: cpu.h:31
#define check_func(func,...)
Definition: checkasm.h:107
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:67
if(ret< 0)
Definition: vf_mcdeint.c:279
#define bench_new(...)
Definition: checkasm.h:249
#define call_new(...)
Definition: checkasm.h:189

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.