From 5f4c09be61de34bb92575a76e52c68f4cc9db5ca Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 17 Nov 2022 14:44:48 -0500 Subject: Enable rapidjson SIMD support --- rapidjsonwrapper.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rapidjsonwrapper.h') diff --git a/rapidjsonwrapper.h b/rapidjsonwrapper.h index 5b117413..18e6bd8f 100644 --- a/rapidjsonwrapper.h +++ b/rapidjsonwrapper.h @@ -17,6 +17,14 @@ struct GenericException : public std::exception virtual const char* what() const throw() { return "Exception while parsing json."; } }; +#ifdef __SSE2__ +#define RAPIDJSON_SSE2 1 +#endif + +#ifdef __ARM_NEON__ +#define RAPIDJSON_NEON 1 +#endif + #define RAPIDJSON_HAS_STDSTRING 0 #define RAPIDJSON_HAS_CXX11_NOEXCEPT 0 #define RAPIDJSON_ASSERT(x) \ -- cgit v1.3.1