Skip to content

Commit b5a2c41

Browse files
committed
We need the Intel intrinsic.
1 parent 5a892bd commit b5a2c41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/simdjson/portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static inline bool mul_overflow(uint64_t value1, uint64_t value2, uint64_t *re
5454

5555
/* result might be undefined when input_num is zero */
5656
static inline int trailingzeroes(uint64_t input_num) {
57-
return __builtin_ctzll(input_num); // for some reason, the Intel intrinsic _tzcnt_u64 may be missing
57+
return _tzcnt_u64(input_num); // for some reason, the Intel intrinsic _tzcnt_u64 may be missing
5858
}
5959

6060
/* result might be undefined when input_num is zero */

0 commit comments

Comments
 (0)