From fe534f1497da6447153064d7bba00243000f803b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 6 Apr 2026 15:18:26 +0200 Subject: Added popcount_u64 --- src/arch/avx2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/avx2.h') diff --git a/src/arch/avx2.h b/src/arch/avx2.h index 5857493..15ce02a 100644 --- a/src/arch/avx2.h +++ b/src/arch/avx2.h @@ -34,6 +34,12 @@ popcount_u32(uint32_t x) return _mm_popcnt_u32(x); } +STATIC_INLINE int +popcount_u64(uint64_t x) +{ + return _mm_popcnt_u64(x); +} + STATIC void pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) { -- cgit v1.3