mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-05 01:40:37 -05:00
core: Add RISC-V V optimized sconv pa_sconv_s16le_from_float32ne
This commit is contained in:
parent
3e2bb8a1ec
commit
ad0580a22c
7 changed files with 176 additions and 0 deletions
13
meson.build
13
meson.build
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue