[libc][NFC] Move aligned access implementations to separate header
[llvm-project.git] / libc / src / __support / UInt128.h
blob1cc86a7c3fe0612a90e05c1e6457070b99a9a24c
1 //===-- 128-bit signed and unsigned int types -------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_SUPPORT_UINT128_H
10 #define LLVM_LIBC_SRC_SUPPORT_UINT128_H
12 #include "UInt.h"
14 #if !defined(__SIZEOF_INT128__)
15 using UInt128 = __llvm_libc::cpp::UInt<128>;
16 using Int128 = __llvm_libc::cpp::Int<128>;
17 #else
18 using UInt128 = __uint128_t;
19 using Int128 = __int128_t;
20 #endif
22 #endif // LLVM_LIBC_SRC_SUPPORT_UINT128_H