mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-02-08 22:43:30 +01:00
Update precompiled.h
This commit is contained in:
parent
0a59085021
commit
07cd402531
@ -279,10 +279,10 @@ inline uint64 _udiv128(uint64 highDividend, uint64 lowDividend, uint64 divisor,
|
|||||||
#elif defined(__GNUC__) || defined(__clang__)
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
#define FORCE_INLINE inline __attribute__((always_inline))
|
#define FORCE_INLINE inline __attribute__((always_inline))
|
||||||
#else
|
#else
|
||||||
#define FORCE_INLINE
|
#define FORCE_INLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FORCE_INLINE inline int BSF(uint32 v) // returns index of first bit set, counting from LSB. If v is 0 then result is undefined
|
FORCE_INLINE int BSF(uint32 v) // returns index of first bit set, counting from LSB. If v is 0 then result is undefined
|
||||||
{
|
{
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
return _tzcnt_u32(v); // TZCNT requires BMI1. But if not supported it will execute as BSF
|
return _tzcnt_u32(v); // TZCNT requires BMI1. But if not supported it will execute as BSF
|
||||||
@ -616,4 +616,4 @@ namespace stdx
|
|||||||
scope_exit& operator=(scope_exit) = delete;
|
scope_exit& operator=(scope_exit) = delete;
|
||||||
void release() { m_released = true;}
|
void release() { m_released = true;}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user