mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Check for macro existence before checking its value.
This commit is contained in:
parent
c27bcc524c
commit
048e20b68c
@ -1,7 +1,7 @@
|
|||||||
#ifndef __TRACYYIELD_HPP__
|
#ifndef __TRACYYIELD_HPP__
|
||||||
#define __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>
|
# include <emmintrin.h>
|
||||||
#else
|
#else
|
||||||
# include <thread>
|
# include <thread>
|
||||||
@ -14,7 +14,7 @@ namespace tracy
|
|||||||
|
|
||||||
static tracy_force_inline void YieldThread()
|
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();
|
_mm_pause();
|
||||||
#elif defined __aarch64__
|
#elif defined __aarch64__
|
||||||
asm volatile( "isb" : : );
|
asm volatile( "isb" : : );
|
||||||
|
Loading…
Reference in New Issue
Block a user