diff --git a/server/TracyPopcnt.hpp b/server/TracyPopcnt.hpp index 11d4c715..a84008d5 100644 --- a/server/TracyPopcnt.hpp +++ b/server/TracyPopcnt.hpp @@ -3,9 +3,11 @@ #include -#if defined _WIN64 || ( defined __CYGWIN__ && __WORDSIZE == 64 ) +#if defined _WIN64 # include # define TracyCountBits __popcnt64 +#elif defined __GNUC__ || defined __clang__ +# define TracyCountBits __builtin_popcountll #else static inline int TracyCountBits( uint64_t i ) {