29 #define randomize_buffers(buf, size) \
32 for (j = 0; j < size; j++) { \
34 AV_WN16A(buf + j, r >> 3); \
38 #define randomize_buffers2(buf, size) \
41 for (j = 0; j < size; j++) \
42 AV_WN16A(buf + j * 2, rnd() & 0x3FF); \
53 for (i = 2; i <= 5; i++) {
54 int block_size = 1 << i;
55 int size = block_size * block_size;
56 ptrdiff_t
stride = block_size << (bit_depth > 8);
61 memcpy(res1, res0,
sizeof(*res0) * size);
62 memcpy(dst1, dst0,
sizeof(int16_t) * size);
67 if (memcmp(dst0, dst1, size))
78 for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
#define randomize_buffers2(buf, size)
void checkasm_check_hevc_add_res(void)
#define randomize_buffers(buf, size)
static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth)
static void check_add_res(HEVCDSPContext h, int bit_depth)
#define declare_func_emms(cpu_flags, ret,...)
void ff_hevc_dsp_init(HEVCDSPContext *hevcdsp, int bit_depth)
#define AV_CPU_FLAG_MMX
standard MMX
#define check_func(func,...)
void(* add_residual[4])(uint8_t *dst, int16_t *res, ptrdiff_t stride)
#define LOCAL_ALIGNED_32(t, v,...)
GLint GLenum GLboolean GLsizei stride