Merge branch 'master' into 'master'

core: Add RISC-V V optimized sconv pa_sconv_s16le_from_float32ne

See merge request pulseaudio/pulseaudio!833
This commit is contained in:
sun yuechi 2026-01-08 03:43:09 +00:00
commit 69f1916bc7
8 changed files with 210 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')