1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

TracyCountBits should be static inline.

This commit is contained in:
Bartosz Taudul 2017-11-11 02:46:41 +01:00
parent 88d4580631
commit 35391d08f1

View File

@ -5,7 +5,7 @@
# include <intrin.h> # include <intrin.h>
# define TracyCountBits __popcnt64 # define TracyCountBits __popcnt64
#else #else
static int TracyCountBits( uint64_t i ) static inline int TracyCountBits( uint64_t i )
{ {
i = i - ( (i >> 1) & 0x5555555555555555 ); i = i - ( (i >> 1) & 0x5555555555555555 );
i = ( i & 0x3333333333333333 ) + ( (i >> 2) & 0x3333333333333333 ); i = ( i & 0x3333333333333333 ) + ( (i >> 2) & 0x3333333333333333 );