fmt-ops: add RVV optimizations for f32d_to_s32

This commit is contained in:
sunyuechi 2024-09-25 13:11:08 +08:00 committed by hleft
parent c7c5b61dac
commit 79d41e183e
5 changed files with 65 additions and 0 deletions

View file

@ -343,6 +343,12 @@ static void test_f32_s32(void)
false, true, conv_f32d_to_s32_avx2);
}
#endif
#if defined(HAVE_RVV)
if (cpu_flags & SPA_CPU_FLAG_RISCV_V) {
run_test("test_f32d_s32_rvv", in, sizeof(in[0]), out, sizeof(out[0]), SPA_N_ELEMENTS(out),
false, true, conv_f32d_to_s32_rvv);
}
#endif
}
static void test_s32_f32(void)