From ca06b12a2f89b6cc4b2b445e7ef7aeef8a947a35 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Fri, 29 May 2020 14:42:11 +1000 Subject: [PATCH] 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. --- src/common/common_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/common_types.h b/src/common/common_types.h index 4cec89fbd9..c06522b23c 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -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; static_assert(sizeof(u128) == 16, "u128 must be 128 bits wide");