Skip to content

Commit 829f4bc

Browse files
authored
Merge pull request #822 from byroot/simd-remove-cpu-init
Stop calling `__builtin_cpu_init`
2 parents 3462d81 + d3317b9 commit 829f4bc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/json/ext/simd/simd.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,10 @@ static inline TARGET_SSE2 FORCE_INLINE int string_scan_simd_sse2(const char **pt
162162
#endif /* HAVE_CPUID_H */
163163

164164
static inline SIMD_Implementation find_simd_implementation(void) {
165-
166-
#if defined(__GNUC__ ) || defined(__clang__)
167-
#ifdef __GNUC__
168-
__builtin_cpu_init();
169-
#endif /* __GNUC__ */
170-
171165
// TODO Revisit. I think the SSE version now only uses SSE2 instructions.
172166
if (__builtin_cpu_supports("sse2")) {
173167
return SIMD_SSE2;
174168
}
175-
#endif /* __GNUC__ || __clang__*/
176169

177170
return SIMD_NONE;
178171
}

0 commit comments

Comments
 (0)