7#include "utility/module.hpp"
9#if (HI_COMPILER == HI_CC_GCC || HI_COMPILER == HI_CC_CLANG) && (HI_PROCESSOR == HI_CPU_X64 || HI_PROCESSOR == HI_CPU_ARM64)
10#define HI_HAS_INT128 1
13#if !defined(HI_HAS_INT128)
36namespace hi::inline
v1 {
42using int128_t = bigint<uintreg_t, 128 / (
sizeof(uintreg_t) * CHAR_BIT),
true>;
46using uint128_t = bigint<uintreg_t, 128 / (
sizeof(uintreg_t) * CHAR_BIT),
false>;
51template<>
struct make_uintxx<128> {
using type =
uint128_t; };
52template<>
struct make_intxx<128> {
using type =
int128_t; };
57#if HI_PROCESSOR == HI_CPU_X86 || HI_PROCESSOR == HI_CPU_ARM
67#elif HI_PROCESSOR == HI_CPU_X64 || HI_PROCESSOR == HI_CPU_ARM64
78#error "longreg_t ulongreg_t missing implementation"
DOXYGEN BUG.
Definition algorithm.hpp:13
int64_t longreg_t
Signed integer twice the size of a standard CPU register.
Definition stdint.hpp:61
__int128 int128_t
Signed 128 bit integer.
Definition architecture.hpp:180
unsigned __int128 uint128_t
Unsigned 128 bit integer.
Definition architecture.hpp:184
uint64_t ulongreg_t
Unsigned integer twice the size of a standard CPU register.
Definition stdint.hpp:65