We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3111db7 commit 799430aCopy full SHA for 799430a
1 file changed
include/json_struct/json_struct.h
@@ -184,6 +184,7 @@
184
185
#define JS_UNUSED(x) (void)(x)
186
187
+#ifndef JS_DISABLE_SIMD
188
#if defined(__SSE2__) || defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
189
#define JSON_STRUCT_HAS_SSE2 1
190
#include <emmintrin.h>
@@ -208,6 +209,8 @@
208
209
#define JSON_STRUCT_HAS_NEON 1
210
#include <arm_neon.h>
211
#endif
212
+#endif
213
+
214
215
#if defined(__GNUC__) || defined(__clang__)
216
#define JSON_STRUCT_LIKELY(x) __builtin_expect(!!(x), 1)
0 commit comments