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
path: root/public
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-11 14:09:59 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-11 14:09:59 +0300
commit048e20b68ce70c89107a6d39d58519c627db5657 (patch)
tree52115288eb1a5635e4a4d69faf6e8bcd5b08a19e /public
parentc27bcc524cd7ac66433391dd035c825c4d6bf358 (diff)
Check for macro existence before checking its value.
Diffstat (limited to 'public')
-rw-r--r--public/common/TracyYield.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/common/TracyYield.hpp b/public/common/TracyYield.hpp
index 7b8ccef0..035836cd 100644
--- a/public/common/TracyYield.hpp
+++ b/public/common/TracyYield.hpp
@@ -1,7 +1,7 @@
#ifndef __TRACYYIELD_HPP__
#define __TRACYYIELD_HPP__
-#if defined __SSE2__ || defined _M_AMD64 || _M_IX86_FP == 2
+#if defined __SSE2__ || defined _M_AMD64 || (defined _M_IX86_FP && _M_IX86_FP == 2)
# include <emmintrin.h>
#else
# include <thread>
@@ -14,7 +14,7 @@ namespace tracy
static tracy_force_inline void YieldThread()
{
-#if defined __SSE2__ || defined _M_AMD64 || _M_IX86_FP == 2
+#if defined __SSE2__ || defined _M_AMD64 || (defined _M_IX86_FP && _M_IX86_FP == 2)
_mm_pause();
#elif defined __aarch64__
asm volatile( "isb" : : );