mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: fix rounding on arm neon
Add the neon functions to the test
This commit is contained in:
parent
1db52856ff
commit
b1b8b0985a
2 changed files with 84 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue