Compare commits

..

1 commit

Author SHA1 Message Date
Thor Preimesberger
ed604aa2d1
Merge 10e27e2142 into e371736b17 2025-09-23 18:25:00 -04:00

View file

@ -414,7 +414,8 @@ static size_t get_free_slot(struct random_state *rng, size_t slots, const struct
size_t first_bitmap = random_index / U64_WIDTH; size_t first_bitmap = random_index / U64_WIDTH;
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wundef" #pragma GCC diagnostic ignored "-Wundef"
#if __x86_64__ && ((__GNU__ && __BMI2__ ) || (__clang__ && __BMI2INTRIN_H_)) // __BMI2__ is idiomatic to gcc unfortunately.
#if __x86_64__ && (__BMI2__ || (__clang__ && __BMI2INTRIN_H_))
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
u64 random_split = ~(~0UL << _pext_u64(random_index, 8)); u64 random_split = ~(~0UL << _pext_u64(random_index, 8));
#else #else