mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 10:55:14 -04:00
kern: update Initialize0 for new changes
This commit is contained in:
parent
504472af4e
commit
a1e137cc1c
5 changed files with 147 additions and 60 deletions
|
@ -43,6 +43,11 @@ namespace ams::util {
|
|||
return (value & invmask) == 0;
|
||||
}
|
||||
|
||||
template<typename T> requires std::unsigned_integral<T>
|
||||
constexpr ALWAYS_INLINE T GetAlignment(T value) {
|
||||
return value & -value;
|
||||
}
|
||||
|
||||
template<>
|
||||
constexpr ALWAYS_INLINE void *AlignUp<void *>(void *value, size_t alignment) {
|
||||
return reinterpret_cast<void *>(AlignUp(reinterpret_cast<uintptr_t>(value), alignment));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue