Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-05-28 19:18:54 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-05-28 19:18:54 +0300
commit145ca30df96c61a69834a0b5de8daab016739ae0 (patch)
treea259ec5f965a6e86ce287ab270b4487f07b560be /server/TracyPopcnt.hpp
parentb3812146cbe4e5ad88f247c4c6c6d4b5d74ba0b9 (diff)
There's no __popcnt64 in 32 bit winapi.
Diffstat (limited to 'server/TracyPopcnt.hpp')
-rw-r--r--server/TracyPopcnt.hpp4
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