FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bswapdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/bswapdsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   512
 
#define randomize_buffers()
 
#define check_bswap(type)
 

Functions

void checkasm_check_bswapdsp (void)
 

Macro Definition Documentation

#define BUF_SIZE   512

Definition at line 28 of file bswapdsp.c.

Referenced by checkasm_check_bswapdsp().

#define randomize_buffers ( )
Value:
do { \
int i; \
for (i = 0; i < BUF_SIZE; i += 4) { \
uint32_t r = rnd(); \
AV_WN32A(src0 + i, r); \
AV_WN32A(src1 + i, r); \
r = rnd(); \
AV_WN32A(dst0 + i, r); \
AV_WN32A(dst1 + i, r); \
} \
} while (0)
#define BUF_SIZE
Definition: bswapdsp.c:28
#define AV_WN32A(p, v)
Definition: intreadwrite.h:538
const char * r
Definition: vf_curves.c:107
#define src1
Definition: h264pred.c:139
#define src0
Definition: h264pred.c:138
#define rnd()
Definition: checkasm.h:66
for(j=16;j >0;--j)

Definition at line 30 of file bswapdsp.c.

#define check_bswap (   type)
Value:
do { \
int w; \
declare_func(void, type *dst, const type *src, int w); \
for (w = 0; w < BUF_SIZE / sizeof(type); w++) { \
int offset = (BUF_SIZE / sizeof(type) - w) & 15; /* Test various alignments */ \
call_ref((type *)dst0 + offset, (type *)src0 + offset, w); \
call_new((type *)dst1 + offset, (type *)src1 + offset, w); \
if (memcmp(src0, src1, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZE)) \
fail(); \
bench_new((type *)dst1 + offset, (type *)src1 + offset, w); \
} \
} while (0)
#define randomize_buffers()
Definition: bswapdsp.c:30
#define BUF_SIZE
Definition: bswapdsp.c:28
#define declare_func(ret,...)
Definition: checkasm.h:77
static const uint8_t offset[127][2]
Definition: vf_spp.c:92
#define fail()
Definition: checkasm.h:81
#define src
Definition: vp9dsp.c:530
#define call_ref(...)
Definition: checkasm.h:87
#define src1
Definition: h264pred.c:139
GLint GLenum type
Definition: opengl_enc.c:105
#define src0
Definition: h264pred.c:138
if(ret< 0)
Definition: vf_mcdeint.c:282
#define bench_new(...)
Definition: checkasm.h:173
#define call_new(...)
Definition: checkasm.h:142
for(j=16;j >0;--j)

Definition at line 43 of file bswapdsp.c.

Referenced by checkasm_check_bswapdsp().

Function Documentation

void checkasm_check_bswapdsp ( void  )

Definition at line 59 of file bswapdsp.c.