Replaced POPCNT with std::popcount<unsigned int>

This commit is contained in:
Tom Lally 2022-08-27 21:18:49 +01:00
parent 73a8e6faac
commit d68d6c4e04

View file

@ -398,7 +398,7 @@ namespace coreinit
else
track = (MEMBlockHeapTrackDEPR*)memory_getPointerFromVirtualOffsetAllowNull(_swapEndianU32(blockHeapHead->headBlock));
cemu_assert_debug(POPCNT(alignment) == 1); // not a supported alignment value
cemu_assert_debug(std::popcount<unsigned int>(alignment) == 1); // not a supported alignment value
while (track)
{
if (track->isFree != _swapEndianU32(0))