diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-05-28 19:18:54 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-05-28 19:18:54 +0300 |
commit | 145ca30df96c61a69834a0b5de8daab016739ae0 (patch) | |
tree | a259ec5f965a6e86ce287ab270b4487f07b560be /server/TracyPopcnt.hpp | |
parent | b3812146cbe4e5ad88f247c4c6c6d4b5d74ba0b9 (diff) |
There's no __popcnt64 in 32 bit winapi.
Diffstat (limited to 'server/TracyPopcnt.hpp')
-rw-r--r-- | server/TracyPopcnt.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/TracyPopcnt.hpp b/server/TracyPopcnt.hpp index ec8dd197..11d4c715 100644 --- a/server/TracyPopcnt.hpp +++ b/server/TracyPopcnt.hpp @@ -1,7 +1,9 @@ #ifndef __TRACYPOPCNT_HPP__ #define __TRACYPOPCNT_HPP__ -#ifdef _WIN32 +#include <limits.h> + +#if defined _WIN64 || ( defined __CYGWIN__ && __WORDSIZE == 64 ) # include <intrin.h> # define TracyCountBits __popcnt64 #else |