Skip to content

Commit 29c9580

Browse files
committed
Inlucde SIMD headers for writer.h
1 parent 680c111 commit 29c9580

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/rapidjson/writer.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
#include "stringbuffer.h"
2424
#include <new> // placement new
2525

26+
#if defined(RAPIDJSON_SIMD) && defined(_MSC_VER)
27+
#include <intrin.h>
28+
#pragma intrinsic(_BitScanForward)
29+
#endif
30+
#ifdef RAPIDJSON_SSE42
31+
#include <nmmintrin.h>
32+
#elif defined(RAPIDJSON_SSE2)
33+
#include <emmintrin.h>
34+
#endif
35+
2636
#ifdef _MSC_VER
2737
RAPIDJSON_DIAG_PUSH
2838
RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant

0 commit comments

Comments
 (0)