HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
register_int.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include "architecture.hpp"
8#include "bigint.hpp"
9#include <cstdint>
10
35namespace hi::inline v1 {
36
37#if HI_PROCESSOR == HI_CPU_X64
38using register_int = int64_t;
39using register_signed_int = int64_t;
40using register_unsigned_int = uint64_t;
41
42#if HI_COMPILER == HI_CC_CLANG || HI_COMPILER == HI_CC_GCC
43using register_long = __int128_t;
44using register_signed_long = __int128_t;
45using register_unsigned_long = unsigned __int128_t;
46
47#else
48using register_long = bigint<register_unsigned_int, 2, true>;
49using register_signed_long = bigint<register_unsigned_int, 2, true>;
50using register_unsigned_long = bigint<register_unsigned_int, 2, false>;
51#endif
52
53#else
54#error "register_int missing implementation"
55#endif
56
57} // namespace hi::inline v1
Functions and macros for handling architectural difference between compilers, CPUs and operating syst...