mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-10 07:06:34 +00:00
libvapours: constexpr ALWAYS_INLINE T CombineBits
This commit is contained in:
parent
30e39e60f7
commit
c6a736a6f6
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace ams::util {
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T = u64, typename ...Args>
|
template<typename T = u64, typename ...Args>
|
||||||
T CombineBits(Args... args) {
|
constexpr ALWAYS_INLINE T CombineBits(Args... args) {
|
||||||
return (... | (T(1u) << args));
|
return (... | (T(1u) << args));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue