From 4effb3f1bd757616d4701a236c1018637c3a84d2 Mon Sep 17 00:00:00 2001 From: quackerd Date: Thu, 16 Mar 2023 09:43:19 +0100 Subject: [PATCH] multiarch --- inc/defs.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/defs.hh b/inc/defs.hh index 858f49d..cf62992 100644 --- a/inc/defs.hh +++ b/inc/defs.hh @@ -1,10 +1,8 @@ #pragma once #include +#include #include -#if defined(__x86_64__) -#include -#endif #include #include #include @@ -35,7 +33,7 @@ cmask_get_next_cpu(uint64_t *mask) static inline int cmask_get_num_cpus(const uint64_t mask) { - return _mm_popcnt_u64(mask); + return __builtin_popcount(mask); } #endif