mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa/support: implement RISCV V CPU detection
This commit is contained in:
parent
e2991f6398
commit
8166b9c580
5 changed files with 60 additions and 1 deletions
15
meson.build
15
meson.build
|
|
@ -177,6 +177,20 @@ elif cc.has_argument('-mfpu=neon')
|
|||
endif
|
||||
endif
|
||||
|
||||
have_rvv = false
|
||||
if host_machine.cpu_family() == 'riscv64'
|
||||
if cc.compiles('''
|
||||
int main() {
|
||||
__asm__ __volatile__ (
|
||||
".option arch, +v\nvsetivli zero, 0, e8, m1, ta, ma"
|
||||
);
|
||||
}
|
||||
''',
|
||||
name : 'riscv64 V Support')
|
||||
have_rvv = true
|
||||
endif
|
||||
endif
|
||||
|
||||
libatomic = cc.find_library('atomic', required : false)
|
||||
|
||||
test_8_byte_atomic = '''
|
||||
|
|
@ -237,6 +251,7 @@ if host_machine.endian() == 'big'
|
|||
endif
|
||||
|
||||
check_headers = [
|
||||
['sys/auxv.h', 'HAVE_SYS_AUXV_H'],
|
||||
['sys/mount.h', 'HAVE_SYS_MOUNT_H'],
|
||||
['sys/param.h', 'HAVE_SYS_PARAM_H'],
|
||||
['sys/random.h', 'HAVE_SYS_RANDOM_H'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue