From a141c401f78467bc15f62882fca5d55a007cacbb Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 17 Feb 2025 00:21:48 +0100 Subject: Reorganize everything --- asl/base/integers.hpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 asl/base/integers.hpp (limited to 'asl/base/integers.hpp') diff --git a/asl/base/integers.hpp b/asl/base/integers.hpp new file mode 100644 index 0000000..c18c850 --- /dev/null +++ b/asl/base/integers.hpp @@ -0,0 +1,40 @@ +#pragma once + +#include "asl/base/config.hpp" + +using int8_t = signed char; +using int16_t = signed short; +using int32_t = signed int; +#if ASL_OS_WINDOWS + using int64_t = signed long long; +#elif ASL_OS_LINUX + using int64_t = signed long; +#endif + +using uint8_t = unsigned char; +using uint16_t = unsigned short; +using uint32_t = unsigned int; +#if ASL_OS_WINDOWS + using uint64_t = unsigned long long; +#elif ASL_OS_LINUX + using uint64_t = unsigned long; +#endif + +struct uint128_t +{ + uint64_t high; + uint64_t low; +}; + +using size_t = uint64_t; +using isize_t = int64_t; + +using uintptr_t = size_t; + +namespace asl +{ + +enum class byte : uint8_t {}; + +} // namespace asl + -- cgit