mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Use proper popcnt for gcc/clang (including cygwin).
This commit is contained in:
parent
9375afdbed
commit
79bfac9ca9
@ -3,9 +3,11 @@
|
|||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#if defined _WIN64 || ( defined __CYGWIN__ && __WORDSIZE == 64 )
|
#if defined _WIN64
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
# define TracyCountBits __popcnt64
|
# define TracyCountBits __popcnt64
|
||||||
|
#elif defined __GNUC__ || defined __clang__
|
||||||
|
# define TracyCountBits __builtin_popcountll
|
||||||
#else
|
#else
|
||||||
static inline int TracyCountBits( uint64_t i )
|
static inline int TracyCountBits( uint64_t i )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user