diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2017-11-11 04:46:41 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2017-11-11 04:46:41 +0300 |
commit | 35391d08f17759635d5e7dc28172060ae12432a5 (patch) | |
tree | b872b164c9aa5d3dcc5e3e2be1a12dc2735d0acb /server/TracyPopcnt.hpp | |
parent | 88d458063184cc320ecbadc049aac89b50802da4 (diff) |
TracyCountBits should be static inline.
Diffstat (limited to 'server/TracyPopcnt.hpp')
-rw-r--r-- | server/TracyPopcnt.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TracyPopcnt.hpp b/server/TracyPopcnt.hpp index d6e4af03..57f5c9ee 100644 --- a/server/TracyPopcnt.hpp +++ b/server/TracyPopcnt.hpp @@ -5,7 +5,7 @@ # include <intrin.h> # define TracyCountBits __popcnt64 #else -static int TracyCountBits( uint64_t i ) +static inline int TracyCountBits( uint64_t i ) { i = i - ( (i >> 1) & 0x5555555555555555 ); i = ( i & 0x3333333333333333 ) + ( (i >> 2) & 0x3333333333333333 ); |