xref: /rk3399_ARM-atf/include/lib/libc/aarch64/stdint_.h (revision 4ce3e99a336b74611349595ea7fd5ed0277c3eeb)
1*4ce3e99aSScott Branden /*
2*4ce3e99aSScott Branden  * Copyright 2020 Broadcom
3*4ce3e99aSScott Branden  *
4*4ce3e99aSScott Branden  * SPDX-License-Identifier: BSD-3-Clause
5*4ce3e99aSScott Branden  */
6*4ce3e99aSScott Branden /*
7*4ce3e99aSScott Branden  * Portions copyright (c) 2020, ARM Limited and Contributors.
8*4ce3e99aSScott Branden  * All rights reserved.
9*4ce3e99aSScott Branden  */
10*4ce3e99aSScott Branden 
11*4ce3e99aSScott Branden #ifndef STDINT__H
12*4ce3e99aSScott Branden #define STDINT__H
13*4ce3e99aSScott Branden 
14*4ce3e99aSScott Branden #define INT64_MAX  LONG_MAX
15*4ce3e99aSScott Branden #define INT64_MIN  LONG_MIN
16*4ce3e99aSScott Branden #define UINT64_MAX ULONG_MAX
17*4ce3e99aSScott Branden 
18*4ce3e99aSScott Branden #define INT64_C(x) x ## L
19*4ce3e99aSScott Branden #define UINT64_C(x) x ## UL
20*4ce3e99aSScott Branden 
21*4ce3e99aSScott Branden typedef long int64_t;
22*4ce3e99aSScott Branden typedef unsigned long uint64_t;
23*4ce3e99aSScott Branden typedef long int64_least_t;
24*4ce3e99aSScott Branden typedef unsigned long uint64_least_t;
25*4ce3e99aSScott Branden typedef long int64_fast_t;
26*4ce3e99aSScott Branden typedef unsigned long uint64_fast_t;
27*4ce3e99aSScott Branden 
28*4ce3e99aSScott Branden typedef __int128 int128_t;
29*4ce3e99aSScott Branden typedef unsigned __int128 uint128_t;
30*4ce3e99aSScott Branden 
31*4ce3e99aSScott Branden #endif
32