audioconvert: fix rounding on arm neon

Add the neon functions to the test
This commit is contained in:
Wim Taymans 2022-07-18 15:36:54 +02:00
parent 1db52856ff
commit b1b8b0985a
2 changed files with 84 additions and 30 deletions

View file

@ -242,6 +242,12 @@ static void test_f32_s16(void)
false, true, conv_f32d_to_s16_avx2);
}
#endif
#if defined(HAVE_NEON)
if (cpu_flags & SPA_CPU_FLAG_NEON) {
run_test("test_f32d_s16_neon", in, sizeof(in[0]), out, sizeof(out[0]), SPA_N_ELEMENTS(out),
false, true, conv_f32d_to_s16_neon);
}
#endif
}
static void test_s16_f32(void)
@ -269,6 +275,12 @@ static void test_s16_f32(void)
true, false, conv_s16_to_f32d_avx2);
}
#endif
#if defined(HAVE_NEON)
if (cpu_flags & SPA_CPU_FLAG_NEON) {
run_test("test_s16_f32d_neon", in, sizeof(in[0]), out, sizeof(out[0]), SPA_N_ELEMENTS(out),
true, false, conv_s16_to_f32d_neon);
}
#endif
}
static void test_f32_u32(void)