From 5deea96fe193f1495366195ea08049af071b1eb4 Mon Sep 17 00:00:00 2001 From: Thor Preimesberger Date: Tue, 23 Sep 2025 19:04:08 -0400 Subject: [PATCH] Clean up feature test macros to better communicate intent. Semantics unchanged. --- h_malloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index b83007f..4f6ed19 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -414,8 +414,7 @@ static size_t get_free_slot(struct random_state *rng, size_t slots, const struct size_t first_bitmap = random_index / U64_WIDTH; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wundef" -// __BMI2__ is idiomatic to gcc unfortunately. -#if __x86_64__ && (__BMI2__ || (__clang__ && __BMI2INTRIN_H_)) +#if __x86_64__ && ((__GNU__ && __BMI2__ ) || (__clang__ && __BMI2INTRIN_H_)) #pragma GCC diagnostic pop u64 random_split = ~(~0UL << _pext_u64(random_index, 8)); #else