[*] formatting
This commit is contained in:
parent
57b3e73668
commit
48417b5fff
@ -595,7 +595,7 @@ static auline bool AuBitScanForward(AuUInt8 &index, T value)
|
||||
}
|
||||
|
||||
#if defined(AURORA_COMPILER_MSVC)
|
||||
if constexpr ( sizeof(T) == sizeof(AuUInt64))
|
||||
if constexpr (sizeof(T) == sizeof(AuUInt64))
|
||||
#if defined(AURORA_IS_32BIT)
|
||||
if (!_BitScanForward(&ret, static_cast<AuUInt32>(value & 0xffffffff)))
|
||||
{
|
||||
@ -624,7 +624,7 @@ static auline bool AuBitScanForward(AuUInt8 &index, T value)
|
||||
#endif
|
||||
else if constexpr (sizeof(T) == sizeof(unsigned long))
|
||||
ret = __builtin_ctzl(static_cast<unsigned long>(value));
|
||||
else if constexpr ( sizeof(T) == sizeof(unsigned int))
|
||||
else if constexpr (sizeof(T) == sizeof(unsigned int))
|
||||
ret = __builtin_ctz(static_cast<unsigned int>(value));
|
||||
success = true;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user