Skip to content

Commit 75ba79e

Browse files
committed
Enable SSE2 when available
1 parent 74310e8 commit 75ba79e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/rapidjson/cext.hh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33

44
#include "ruby.h"
55

6+
#ifdef __SSE2__
7+
#define RAPIDJSON_SSE2
8+
#endif
9+
10+
/* fixme: compilation fails? */
11+
#if 0
12+
#ifdef __SSE4_2__
13+
#define RAPIDJSON_SSE42
14+
#endif
15+
#endif
16+
617
#include "rapidjson/rapidjson.h"
718

819
#endif /* RAPIDJSON_H */

0 commit comments

Comments
 (0)