Skip to content

Commit 3488c49

Browse files
authored
Basically, haswell processor should be able to count on lzcnt. (simdjson#458)
1 parent adaef43 commit 3488c49

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

include/simdjson/portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#endif
4949

5050
// under GCC and CLANG, we use these two macros
51-
#define TARGET_HASWELL TARGET_REGION("avx2,bmi,pclmul")
51+
#define TARGET_HASWELL TARGET_REGION("avx2,bmi,pclmul,lzcnt")
5252
#define TARGET_WESTMERE TARGET_REGION("sse4.2,pclmul")
5353
#define TARGET_ARM64
5454

src/arm64/numberparsing.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
#include "simdjson/common_defs.h"
77
#include "simdjson/portability.h"
8-
#include "westmere/intrinsics.h"
8+
#include "arm64/intrinsics.h"
9+
#include "arm64/bitmanipulation.h"
910
#include "simdjson/parsedjson.h"
1011
#include "jsoncharutils.h"
1112
#include <cmath>

src/haswell/numberparsing.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
#include "simdjson/common_defs.h"
77
#include "simdjson/portability.h"
8-
#include "westmere/intrinsics.h"
8+
#include "haswell/intrinsics.h"
9+
#include "haswell/bitmanipulation.h"
910
#include "simdjson/parsedjson.h"
1011
#include "jsoncharutils.h"
1112
#include <cmath>

src/westmere/numberparsing.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "simdjson/common_defs.h"
1010
#include "simdjson/portability.h"
1111
#include "westmere/intrinsics.h"
12+
#include "westmere/bitmanipulation.h"
1213
#include "simdjson/parsedjson.h"
1314
#include "jsoncharutils.h"
1415
#include <cmath>

0 commit comments

Comments
 (0)