diff options
Diffstat (limited to 'src/globals-vixl.h')
-rw-r--r-- | src/globals-vixl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/globals-vixl.h b/src/globals-vixl.h index beada9eb..bcb09936 100644 --- a/src/globals-vixl.h +++ b/src/globals-vixl.h @@ -71,6 +71,19 @@ const int MBytes = 1024 * KBytes; const int kBitsPerByte = 8; +template <int SizeInBytes> +struct Unsigned; + +template <> +struct Unsigned<4> { + typedef uint32_t type; +}; + +template <> +struct Unsigned<8> { + typedef uint64_t type; +}; + } // namespace vixl // Detect the host's pointer size. |