Commit bcd87965 authored by miloyip's avatar miloyip

Enable SIMD macros in unit tests

parent affd2736
......@@ -40,6 +40,14 @@
#pragma GCC diagnostic ignored "-Weffc++"
#endif
// __SSE2__ and __SSE4_2__ are recognized by gcc, clang, and the Intel compiler.
// We use -march=native with gmake to enable -msse2 and -msse4.2, if supported.
#if defined(__SSE4_2__)
# define RAPIDJSON_SSE42
#elif defined(__SSE2__)
# define RAPIDJSON_SSE2
#endif
#include "gtest/gtest.h"
#include <stdexcept>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment