mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 01:15:08 -04:00
ams: assume gcc 11
This commit is contained in:
parent
21f3d29df7
commit
0767d9f8da
4 changed files with 20 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue