Skip to content

Commit 9b5150d

Browse files
authored
Fixing issue 1247 (simdjson#1325)
1 parent 9304d88 commit 9b5150d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/simdjson/haswell.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
#ifndef SIMDJSON_IMPLEMENTATION_HASWELL
1616
#define SIMDJSON_IMPLEMENTATION_HASWELL (SIMDJSON_IS_X86_64)
1717
#endif
18-
#define SIMDJSON_CAN_ALWAYS_RUN_HASWELL ((SIMDJSON_IMPLEMENTATION_HASWELL) && (SIMDJSON_IS_X86_64) && (__AVX2__) && (__BMI__) && (__PCLMUL__) && (__LZCNT__))
18+
// To see why (__BMI__) && (__PCLMUL__) && (__LZCNT__) are not part of this next line, see
19+
// https://github.com/simdjson/simdjson/issues/1247
20+
#define SIMDJSON_CAN_ALWAYS_RUN_HASWELL ((SIMDJSON_IMPLEMENTATION_HASWELL) && (SIMDJSON_IS_X86_64) && (__AVX2__))
1921

2022
#if SIMDJSON_IMPLEMENTATION_HASWELL
2123

0 commit comments

Comments
 (0)