File tree 5 files changed +9438
-5
lines changed
5 files changed +9438
-5
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,18 @@ else ()
93
93
set (X86 FALSE )
94
94
endif ()
95
95
96
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(aarch64)|(AARCH64)|(arm64)|(ARM64)" )
97
+ set (ARM64 TRUE )
98
+ endif ()
99
+
96
100
check_c_compiler_flag("-mssse3" HAS_SSSE3)
97
101
check_c_compiler_flag("-msse4.1" HAS_SSE4_1)
98
102
99
103
if (HAS_SSSE3 AND HAS_SSE4_1 AND X86)
100
104
set (DEFAULT_C_COMP_OPTIONS ${DEFAULT_C_COMP_OPTIONS} -mssse3 -msse4.1)
101
105
ADD_COMPILE_DEFINITIONS (N64_HAVE_SSE)
106
+ elseif (ARM64)
107
+ ADD_COMPILE_DEFINITIONS (N64_HAVE_SSE N64_USE_NEON)
102
108
endif ()
103
109
104
110
add_compile_options ("$<$<COMPILE_LANGUAGE:C>:${DEFAULT_C_COMP_OPTIONS} >" )
Original file line number Diff line number Diff line change 6
6
#include <stdio.h>
7
7
8
8
#ifdef N64_HAVE_SSE
9
+ #ifdef N64_USE_NEON
10
+ #include <sse2neon.h>
11
+ #else
9
12
#include <emmintrin.h>
10
13
#endif
14
+ #endif
11
15
12
16
typedef uint8_t u8 ;
13
17
typedef uint16_t u16 ;
You can’t perform that action at this time.
0 commit comments