fmt-ops: add R-V V optimizations for f32_s16

This commit is contained in:
sunyuechi 2024-09-17 08:58:14 +08:00 committed by Wim Taymans
parent 8166b9c580
commit d932e52d5b
6 changed files with 71 additions and 0 deletions

View file

@ -228,6 +228,12 @@ static void test_f32_s16(void)
false, true, conv_f32d_to_s16_neon);
}
#endif
#if defined(HAVE_RVV)
if (cpu_flags & SPA_CPU_FLAG_RISCV_V) {
run_test("test_f32_s16_rvv", in, sizeof(in[0]), out, sizeof(out[0]), SPA_N_ELEMENTS(out),
true, true, conv_f32_to_s16_rvv);
}
#endif
}
static void test_s16_f32(void)