Common: Use C++20 <bit> header in BitSet.h

This commit is contained in:
JosJuice
2022-12-18 16:51:32 +01:00
parent a1c4861ad8
commit 547d956278
3 changed files with 12 additions and 86 deletions

View File

@ -4,6 +4,7 @@
#include "VideoCommon/VertexLoaderBase.h"
#include <array>
#include <bit>
#include <cstring>
#include <memory>
#include <string>
@ -12,7 +13,6 @@
#include <fmt/format.h>
#include "Common/Assert.h"
#include "Common/BitSet.h"
#include "Common/CommonTypes.h"
#include "Common/Logging/Log.h"
#include "Common/MsgHandler.h"
@ -99,7 +99,7 @@ u32 VertexLoaderBase::GetVertexSize(const TVtxDesc& vtx_desc, const VAT& vtx_att
u32 size = 0;
// Each enabled TexMatIdx adds one byte, as does PosMatIdx
size += Common::CountSetBits(vtx_desc.low.Hex & 0x1FF);
size += std::popcount(vtx_desc.low.Hex & 0x1FF);
const u32 pos_size = VertexLoader_Position::GetSize(vtx_desc.low.Position, vtx_attr.g0.PosFormat,
vtx_attr.g0.PosElements);