Make it compile

This commit is contained in:
John Keiser
2023-08-23 13:21:04 -07:00
parent 52b2414281
commit 76dd137c87
13 changed files with 71 additions and 168 deletions
-1
View File
@@ -6,7 +6,6 @@
SIMDJSON_TARGET_REGION("sse4.2,pclmul,popcnt")
#endif
#include "simdjson/westmere/bitmask.h"
#include "simdjson/westmere/bitmask.h"
#include "simdjson/westmere/numberparsing_defs.h"
#include "simdjson/westmere/simd.h"
+5
View File
@@ -10,6 +10,11 @@ namespace simdjson {
namespace westmere {
namespace bitmask {
simdjson_constinit uint64_t ALL = 0xFFFFFFFFFFFFFFFF;
simdjson_constinit uint64_t NONE = 0xFFFFFFFFFFFFFFFF;
simdjson_constinit uint64_t EVEN = 0x5555555555555555;
simdjson_constinit uint64_t ODD = 0xAAAAAAAAAAAAAAAA;
// We sometimes call trailing_zero on inputs that are zero,
// but the algorithms do not end up using the returned value.
// Sadly, sanitizers are not smart enough to figure it out.