mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-06 17:42:14 +02:00
Compare commits
2 Commits
c41a6b80d7
...
9eb92f37db
Author | SHA1 | Date | |
---|---|---|---|
|
9eb92f37db | ||
|
5b135d12ca |
@ -6,7 +6,7 @@
|
|||||||
[subrepo]
|
[subrepo]
|
||||||
remote = https://github.com/Atmosphere-NX/Atmosphere-libs
|
remote = https://github.com/Atmosphere-NX/Atmosphere-libs
|
||||||
branch = master
|
branch = master
|
||||||
commit = 087f682571631d5d8734dd994b6caa3e96b8e07c
|
commit = d58ff30a12e447141336befd39f56ce14c3e73d1
|
||||||
parent = 05fde7b7644228385df6feb7347e309926da6fc6
|
parent = 5b135d12ca574c8493cd88c9405ad860d040e4a2
|
||||||
method = merge
|
method = merge
|
||||||
cmdver = 0.4.1
|
cmdver = 0.4.1
|
||||||
|
@ -42,7 +42,7 @@ namespace ams::sf {
|
|||||||
} else if constexpr(TransferMode == BufferTransferMode::AutoSelect) {
|
} else if constexpr(TransferMode == BufferTransferMode::AutoSelect) {
|
||||||
return SfBufferAttr_HipcAutoSelect;
|
return SfBufferAttr_HipcAutoSelect;
|
||||||
} else {
|
} else {
|
||||||
static_assert(TransferMode != TransferMode, "Invalid BufferTransferMode");
|
static_assert(false, "Invalid BufferTransferMode");
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace ams::sf {
|
|||||||
private:
|
private:
|
||||||
struct Holder {
|
struct Holder {
|
||||||
MemoryResource *allocator;
|
MemoryResource *allocator;
|
||||||
typename std::aligned_storage<sizeof(T), alignof(T)>::type storage;
|
alignas(alignof(T)) std::byte storage[sizeof(T)];
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
void *Allocate(size_t size) {
|
void *Allocate(size_t size) {
|
||||||
|
@ -57,7 +57,7 @@ namespace ams::sf {
|
|||||||
|
|
||||||
struct Globals {
|
struct Globals {
|
||||||
ExpHeapAllocator allocator;
|
ExpHeapAllocator allocator;
|
||||||
typename std::aligned_storage<Size == 0 ? 1 : Size>::type buffer;
|
alignas(0x10) std::byte buffer[Size == 0 ? 1 : Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
static constinit inline Globals _globals = {};
|
static constinit inline Globals _globals = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user