mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Pedantic correction.
This commit is contained in:
@@ -46,7 +46,7 @@ static inline int hamming(uint64_t input_num) {
|
||||
#include <cstdint>
|
||||
|
||||
static inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
|
||||
return __builtin_uaddl_overflow(value1, value2, (unsigned long *)result);
|
||||
return __builtin_uaddll_overflow(value1, value2, (unsigned long long*)result);
|
||||
}
|
||||
static inline bool mul_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
|
||||
return __builtin_umulll_overflow(value1, value2, (unsigned long long *)result);
|
||||
|
||||
@@ -99,7 +99,7 @@ WARN_UNUSED
|
||||
// indicates whether the sense of any edge going to the next iteration
|
||||
// should be flipped
|
||||
bool iter_ends_odd_backslash =
|
||||
add_overflow(bs_bits, odd_starts, (unsigned long long *) &odd_carries);
|
||||
add_overflow(bs_bits, odd_starts, &odd_carries);
|
||||
|
||||
odd_carries |=
|
||||
prev_iter_ends_odd_backslash; // push in bit zero as a potential end
|
||||
|
||||
Reference in New Issue
Block a user