File tree 4 files changed +7
-12
lines changed
4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -293,8 +293,8 @@ if host_machine.cpu_family() == 'arm'
293
293
# first check if compiler supports the flag, and use it then. Needed only
294
294
# on 32-bit armv7.
295
295
flag = ' -mfpu=neon'
296
- if cc.has_argument(flag)
297
- simd_sse2_neon_flags += flag
296
+ if cc.has_argument(flag) and host_machine .cpu() == ' armv7l '
297
+ simd_sse2_neon_flags += [ flag, ' -march=armv7-a ' ]
298
298
simd_sse2_neon = true
299
299
endif
300
300
elif host_machine .cpu_family() == ' aarch64'
Original file line number Diff line number Diff line change 21
21
#endif
22
22
#endif
23
23
24
- #if PG_ENABLE_ARM_NEON
25
- // sse2neon.h is from here: https://github.com/DLTcollab/sse2neon
26
- #include "include/sse2neon.h"
27
- #endif /* PG_ENABLE_ARM_NEON */
28
-
29
24
#if defined(__SSE2__ )
30
25
#define PG_ENABLE_SSE_NEON 1
31
26
#elif PG_ENABLE_ARM_NEON
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ pg_has_avx2();
33
33
#endif
34
34
#endif
35
35
36
- #if PG_ENABLE_ARM_NEON
37
- // sse2neon.h is from here: https://github.com/DLTcollab/sse2neon
38
- #include "include/sse2neon.h"
39
- #endif /* PG_ENABLE_ARM_NEON */
40
-
41
36
/* This defines PG_ENABLE_SSE_NEON as True if either SSE or NEON is available
42
37
* at compile time. Since we do compile time translation of SSE2->NEON, they
43
38
* have the same code paths, so this reduces code duplication of those paths.
Original file line number Diff line number Diff line change 1
1
#include "simd_fill.h"
2
2
3
+ #if PG_ENABLE_ARM_NEON
4
+ // sse2neon.h is from here: https://github.com/DLTcollab/sse2neon
5
+ #include "include/sse2neon.h"
6
+ #endif /* PG_ENABLE_ARM_NEON */
7
+
3
8
#define BAD_SSE2_FUNCTION_CALL \
4
9
printf( \
5
10
"Fatal Error: Attempted calling an SSE2 function when both compile " \
You can’t perform that action at this time.
0 commit comments