29#define BUF_SIZE (N * STRIDE)
31#define randomize(buf, len) do { \
33 for (i = 0; i < len; i++) { \
34 const INTFLOAT f = (INTFLOAT)rnd() / UINT_MAX; \
44 for (
i = 0;
i <
len;
i++) {
46 u.i &= (0xffffffff <<
bits);
125 memcpy(out1, out0, 91 * 32 * 2 *
sizeof(
INTFLOAT));
139 if (memcmp(out0, out1, 91 * 32 * 2 *
sizeof(
INTFLOAT)))
145 if (memcmp(out0, out1, 91 * 32 * 2 *
sizeof(
INTFLOAT)))
162 memcpy(out1, out0, 2 * 38 * 64 *
sizeof(
INTFLOAT));
176 if (memcmp(out0, out1, 2 * 38 * 64 *
sizeof(
INTFLOAT)))
182 if (memcmp(out0, out1, 2 * 38 * 64 *
sizeof(
INTFLOAT)))
206 for (
i = 0;
i < 2;
i++) {
248 report(
"mul_pair_single");
252 report(
"hybrid_analysis");
256 report(
"hybrid_analysis_ileave");
260 report(
"hybrid_synthesis_deint");
263 report(
"stereo_interpolate");
#define randomize(buf, len)
static void test_hybrid_analysis_ileave(void)
static void test_add_squares(void)
static void test_stereo_interpolate(PSDSPContext *psdsp)
static void test_hybrid_synthesis_deint(void)
static void clear_less_significant_bits(INTFLOAT *buf, int len, int bits)
static void test_hybrid_analysis(void)
void checkasm_check_aacpsdsp(void)
static void test_mul_pair_single(void)
void AAC_RENAME ff_psdsp_init(PSDSPContext *s)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
static const uint8_t bits[8]
#define float_near_abs_eps_array
#define u(width, name, range_min, range_max)
#define LOCAL_ALIGNED_16(t, v,...)
void(* hybrid_analysis_ileave)(INTFLOAT(*restrict out)[32][2], INTFLOAT L[2][38][64], int i, int len)
void(* hybrid_analysis)(INTFLOAT(*restrict out)[2], INTFLOAT(*in)[2], const INTFLOAT(*filter)[8][2], ptrdiff_t stride, int n)
void(* stereo_interpolate[2])(INTFLOAT(*l)[2], INTFLOAT(*r)[2], INTFLOAT h[2][4], INTFLOAT h_step[2][4], int len)
void(* mul_pair_single)(INTFLOAT(*restrict dst)[2], INTFLOAT(*src0)[2], INTFLOAT *src1, int n)
void(* hybrid_synthesis_deint)(INTFLOAT out[2][38][64], INTFLOAT(*restrict in)[32][2], int i, int len)
void(* add_squares)(INTFLOAT *restrict dst, const INTFLOAT(*src)[2], int n)
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)