Compare commits

...

1 Commits

Author SHA1 Message Date
theidexisted
4fd7fc70be Tiny change: Deduplicate with as_const 2022-01-06 18:46:28 +08:00

View File

@@ -308,15 +308,7 @@ public:
private:
template <Type type>
u64* Array() noexcept {
if constexpr (type == Type::CPU) {
return words.cpu.Pointer(IsShort());
} else if constexpr (type == Type::GPU) {
return words.gpu.Pointer(IsShort());
} else if constexpr (type == Type::CachedCPU) {
return words.cached_cpu.Pointer(IsShort());
} else if constexpr (type == Type::Untracked) {
return words.untracked.Pointer(IsShort());
}
return std::as_const(*this).Array();
}
template <Type type>