forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
110 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pipewire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pipewire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pipewire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff --git meson.build meson.build | ||
index 29b4b892..0d048a1f 100644 | ||
--- meson.build | ||
+++ meson.build | ||
@@ -99,37 +99,16 @@ have_avx = cc.has_argument(avx_args) | ||
have_avx2 = cc.has_argument(avx2_args) | ||
|
||
have_neon = false | ||
-if host_machine.cpu_family() == 'aarch64' | ||
- if cc.compiles(''' | ||
- #include <arm_neon.h> | ||
- int main () { | ||
- float *s; | ||
- asm volatile( | ||
- " ld1 { v0.4s }, [%[s]], #16\n" | ||
- " fcvtzs v0.4s, v0.4s, #31\n" | ||
- : [s] "+r" (s) : :); | ||
- } | ||
- ''', | ||
- name : 'aarch64 Neon Support') | ||
- neon_args = [] | ||
- have_neon = true | ||
- | ||
- endif | ||
-elif cc.has_argument('-mfpu=neon') | ||
- if cc.compiles(''' | ||
- #include <arm_neon.h> | ||
- int main () { | ||
- float *s; | ||
- asm volatile( | ||
- " vld1.32 { q0 }, [%[s]]!\n" | ||
- " vcvt.s32.f32 q0, q0, #31\n" | ||
- : [s] "+r" (s) : :); | ||
- } | ||
- ''', | ||
- args: '-mfpu=neon', | ||
- name : 'arm Neon Support') | ||
- neon_args = ['-mfpu=neon'] | ||
- have_neon = true | ||
+if host_machine.cpu_family() == 'arm' or host_machine.cpu_family() == 'aarch64' | ||
+ if cc.compiles( | ||
+''' | ||
+#include <arm_neon.h> | ||
+int32x4_t testfunc(int16_t *a, int16_t *b) { | ||
+return vmull_s16(vld1_s16(a), vld1_s16(b)); | ||
+} | ||
+''', | ||
+ name : 'NEON support') | ||
+ have_neon = true | ||
endif | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters