core: Add RISC-V V optimized sconv pa_sconv_s16le_from_float32ne

This commit is contained in:
sunyuechi 2024-09-13 11:15:43 +08:00 committed by hleft
parent 3e2bb8a1ec
commit ad0580a22c
7 changed files with 176 additions and 0 deletions

View file

@ -293,6 +293,7 @@ endif
check_usable_headers = [
'cpuid.h',
'sys/auxv.h',
]
foreach h : check_usable_headers
@ -594,6 +595,18 @@ if host_machine.cpu_family() == 'arm'
endif
# NEON checks are automatically done by the unstable-simd module
if host_machine.cpu_family() == 'riscv64'
if cc.compiles('''
int main() {
__asm__ __volatile__ (
".option arch, +v\nvsetivli zero, 0, e8, m1, ta, ma"
);
}
''', name : 'rvv code')
cdata.set('HAVE_RVV', 1)
endif
endif
# Dependencies common to client, daemon and modules
if get_option('ipv6')