ams: assume gcc 11

This commit is contained in:
Michael Scire 2021-04-27 23:16:31 -07:00 committed by SciresM
parent 21f3d29df7
commit 0767d9f8da
4 changed files with 20 additions and 25 deletions

View file

@ -133,7 +133,6 @@ namespace ams::util {
template<typename T> requires std::integral<T>
constexpr ALWAYS_INLINE int PopCount(T x) {
/* TODO: C++20 std::bit_cast */
using U = typename std::make_unsigned<T>::type;
U u = static_cast<U>(x);
@ -174,7 +173,6 @@ namespace ams::util {
}
return PopCount(static_cast<T>(~x));
} else {
/* TODO: C++20 std::bit_cast */
using U = typename std::make_unsigned<T>::type;
const U u = static_cast<U>(x);
if constexpr (std::is_same<U, unsigned long long>::value) {