Compare commits

...

1 Commits

Author SHA1 Message Date
David Marcec
ca06b12a2f common_types: Add size_t as a common type
Writing size_t instead of std::size_t allows for better code formatting. Slowly the code base can be switched to size_t instead of std::size_t but shouldn't be done until prometheus is merged.
2020-05-29 14:42:11 +10:00

View File

@@ -44,6 +44,8 @@ using VAddr = u64; ///< Represents a pointer in the userspace virtual address
using PAddr = u64; ///< Represents a pointer in the ARM11 physical address space.
using GPUVAddr = u64; ///< Represents a pointer in the GPU virtual address space.
using size_t = std::size_t; ///< A shorthand for the std::size_t type
using u128 = std::array<std::uint64_t, 2>;
static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide");