Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/iceberg/util/int128.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@

#if defined(_MSC_VER)
# include <__msvc_int128.hpp>
#elif !defined(__GNUC__) && !defined(__clang__)
# error "128-bit integer type is not supported on this platform"
#endif

namespace iceberg {

#if defined(_MSC_VER)
using int128_t = std::_Signed128;
using uint128_t = std::_Unsigned128;
#elif defined(__GNUC__) || defined(__clang__)
#else
using int128_t = __int128;
using uint128_t = unsigned __int128;
#else
# error "128-bit integer type is not supported on this platform"
#endif

} // namespace iceberg
Loading