22#ifndef KUDU_UTIL_INT128_H_
23#define KUDU_UTIL_INT128_H_
26#if defined(__clang__) || \
27 (defined(__GNUC__) && \
28 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= 40600)
29#define KUDU_INT128_SUPPORTED 1
31#define KUDU_INT128_SUPPORTED 0
34#if KUDU_INT128_SUPPORTED
37typedef unsigned __int128 uint128_t;
38typedef signed __int128 int128_t;
42static const uint128_t UINT128_MIN = (uint128_t) 0;
43static const uint128_t UINT128_MAX = ((uint128_t) -1);
44static const int128_t INT128_MAX = ((int128_t)(UINT128_MAX >> 1));
45static const int128_t INT128_MIN = (-INT128_MAX - 1);