File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -127,58 +127,86 @@ ZEND_API int zend_cpu_supports(zend_cpu_feature feature);
127
127
* functions */
128
128
ZEND_NO_SANITIZE_ADDRESS
129
129
static inline int zend_cpu_supports_sse2 (void ) {
130
+ #ifdef __aarch64__
131
+ return 0 ;
132
+ #else
130
133
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
131
134
__builtin_cpu_init ();
132
135
#endif
133
136
return __builtin_cpu_supports ("sse2" );
137
+ #endif
134
138
}
135
139
136
140
ZEND_NO_SANITIZE_ADDRESS
137
141
static inline int zend_cpu_supports_sse3 (void ) {
142
+ #ifdef __aarch64__
143
+ return 0 ;
144
+ #else
138
145
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
139
146
__builtin_cpu_init ();
140
147
#endif
141
148
return __builtin_cpu_supports ("sse3" );
149
+ #endif
142
150
}
143
151
144
152
ZEND_NO_SANITIZE_ADDRESS
145
153
static inline int zend_cpu_supports_ssse3 (void ) {
154
+ #ifdef __aarch64__
155
+ return 0 ;
156
+ #else
146
157
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
147
158
__builtin_cpu_init ();
148
159
#endif
149
160
return __builtin_cpu_supports ("ssse3" );
161
+ #endif
150
162
}
151
163
152
164
ZEND_NO_SANITIZE_ADDRESS
153
165
static inline int zend_cpu_supports_sse41 (void ) {
166
+ #ifdef __aarch64__
167
+ return 0 ;
168
+ #else
154
169
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
155
170
__builtin_cpu_init ();
156
171
#endif
157
172
return __builtin_cpu_supports ("sse4.1" );
173
+ #endif
158
174
}
159
175
160
176
ZEND_NO_SANITIZE_ADDRESS
161
177
static inline int zend_cpu_supports_sse42 (void ) {
178
+ #ifdef __aarch64__
179
+ return 0 ;
180
+ #else
162
181
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
163
182
__builtin_cpu_init ();
164
183
#endif
165
184
return __builtin_cpu_supports ("sse4.2" );
185
+ #endif
166
186
}
167
187
168
188
ZEND_NO_SANITIZE_ADDRESS
169
189
static inline int zend_cpu_supports_avx (void ) {
190
+ #ifdef __aarch64__
191
+ return 0 ;
192
+ #else
170
193
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
171
194
__builtin_cpu_init ();
172
195
#endif
173
196
return __builtin_cpu_supports ("avx" );
197
+ #endif
174
198
}
175
199
176
200
ZEND_NO_SANITIZE_ADDRESS
177
201
static inline int zend_cpu_supports_avx2 (void ) {
202
+ #ifdef __aarch64__
203
+ return 0 ;
204
+ #else
178
205
#ifdef PHP_HAVE_BUILTIN_CPU_INIT
179
206
__builtin_cpu_init ();
180
207
#endif
181
208
return __builtin_cpu_supports ("avx2" );
209
+ #endif
182
210
}
183
211
184
212
#ifdef PHP_HAVE_AVX512_SUPPORTS
You can’t perform that action at this time.
0 commit comments