convert NonStupidBitfield.h back to LF only new lines

This commit is contained in:
RSDuck 2023-08-07 20:50:24 +02:00
parent 3a1d96bb37
commit 875d455bbf
1 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@ inline u64 GetRangedBitMask(u32 idx, u32 startBit, u32 bitsCount)
return 0xFFFFFFFFFFFFFFFF << (startBit & 0x3F); return 0xFFFFFFFFFFFFFFFF << (startBit & 0x3F);
if (((startBit + bitsCount) & 0x3F) && idx == startEntry + entriesCount - 1) if (((startBit + bitsCount) & 0x3F) && idx == startEntry + entriesCount - 1)
return ~(0xFFFFFFFFFFFFFFFF << ((startBit + bitsCount) & 0x3F)); return ~(0xFFFFFFFFFFFFFFFF << ((startBit + bitsCount) & 0x3F));
else
return 0xFFFFFFFFFFFFFFFF;
return 0xFFFFFFFFFFFFFFFF; return 0xFFFFFFFFFFFFFFFF;
} }
else if (idx == startEntry) else if (idx == startEntry)
{ {
return ((1ULL << bitsCount) - 1) << (startBit & 0x3F); return bitsCount == 64
? 0xFFFFFFFFFFFFFFFF
: ((1ULL << bitsCount) - 1) << (startBit & 0x3F);
} }
else else
{ {