diff options
| author | JosJuice <josjuice@gmail.com> | 2022-12-18 16:51:32 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2022-12-18 16:51:32 +0100 |
| commit | 547d9562786360df94e170407864583946a3386b (patch) | |
| tree | 9e7889f0c41201ba73ce648c1ca12b44f5ac3d0c /Source/Core/VideoCommon/VertexLoaderBase.cpp | |
| parent | a1c4861ad8666b622f96266a20af6e8e787c9693 (diff) | |
Common: Use C++20 <bit> header in BitSet.h
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index 0ed8fc6439..dae75ddd6a 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -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); |
