mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
Removed redundant #if defined clauses.
This commit is contained in:
parent
cd2b081098
commit
71af6e54f4
1 changed files with 3 additions and 3 deletions
|
@ -427,7 +427,7 @@ public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool future_is_ready(std::future<T>& f)
|
bool future_is_ready(std::future<T>& f)
|
||||||
{
|
{
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
return f.wait_for(std::chrono::nanoseconds(0)) == std::future_status::ready;
|
return f.wait_for(std::chrono::nanoseconds(0)) == std::future_status::ready;
|
||||||
#else
|
#else
|
||||||
return f._Is_ready();
|
return f._Is_ready();
|
||||||
|
@ -443,7 +443,7 @@ std::atomic<T>* _rawPtrToAtomic(T* ptr)
|
||||||
return reinterpret_cast<std::atomic<T>*>(ptr);
|
return reinterpret_cast<std::atomic<T>*>(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define ATTR_MS_ABI __attribute__((ms_abi))
|
#define ATTR_MS_ABI __attribute__((ms_abi))
|
||||||
#else
|
#else
|
||||||
#define ATTR_MS_ABI
|
#define ATTR_MS_ABI
|
||||||
|
@ -464,7 +464,7 @@ inline uint32 GetTitleIdLow(uint64 titleId)
|
||||||
return titleId & 0xFFFFFFFF;
|
return titleId & 0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define memcpy_dwords(__dest, __src, __numDwords) memcpy((__dest), (__src), (__numDwords) * sizeof(uint32))
|
#define memcpy_dwords(__dest, __src, __numDwords) memcpy((__dest), (__src), (__numDwords) * sizeof(uint32))
|
||||||
#define memcpy_qwords(__dest, __src, __numQwords) memcpy((__dest), (__src), (__numQwords) * sizeof(uint64))
|
#define memcpy_qwords(__dest, __src, __numQwords) memcpy((__dest), (__src), (__numQwords) * sizeof(uint64))
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue