| 1 | #ifndef SIMDJSON_WESTMERE_H |
| 2 | #define SIMDJSON_WESTMERE_H |
| 3 | |
| 4 | #include "simdjson/implementation-base.h" |
| 5 | |
| 6 | #if SIMDJSON_IMPLEMENTATION_WESTMERE |
| 7 | |
| 8 | #if SIMDJSON_CAN_ALWAYS_RUN_WESTMERE |
| 9 | #define SIMDJSON_TARGET_WESTMERE |
| 10 | #define SIMDJSON_UNTARGET_WESTMERE |
| 11 | #else |
| 12 | #define SIMDJSON_TARGET_WESTMERE SIMDJSON_TARGET_REGION("sse4.2,pclmul") |
| 13 | #define SIMDJSON_UNTARGET_WESTMERE SIMDJSON_UNTARGET_REGION |
| 14 | #endif |
| 15 | |
| 16 | namespace simdjson { |
| 17 | /** |
| 18 | * Implementation for Westmere (Intel SSE4.2). |
| 19 | */ |
| 20 | namespace westmere { |
| 21 | } // namespace westmere |
| 22 | } // namespace simdjson |
| 23 | |
| 24 | // |
| 25 | // These two need to be included outside SIMDJSON_TARGET_WESTMERE |
| 26 | // |
| 27 | #include "simdjson/westmere/implementation.h" |
| 28 | #include "simdjson/westmere/intrinsics.h" |
| 29 | |
| 30 | // |
| 31 | // The rest need to be inside the region |
| 32 | // |
| 33 | #include "simdjson/westmere/begin.h" |
| 34 | |
| 35 | // Declarations |
| 36 | #include "simdjson/generic/dom_parser_implementation.h" |
| 37 | #include "simdjson/westmere/bitmanipulation.h" |
| 38 | #include "simdjson/westmere/bitmask.h" |
| 39 | #include "simdjson/westmere/simd.h" |
| 40 | #include "simdjson/generic/jsoncharutils.h" |
| 41 | #include "simdjson/generic/atomparsing.h" |
| 42 | #include "simdjson/westmere/stringparsing.h" |
| 43 | #include "simdjson/westmere/numberparsing.h" |
| 44 | #include "simdjson/westmere/end.h" |
| 45 | |
| 46 | #endif // SIMDJSON_IMPLEMENTATION_WESTMERE |
| 47 | #endif // SIMDJSON_WESTMERE_COMMON_H |
| 48 | |