xref: /rk3399_ARM-atf/include/lib/libc/aarch64/stdint_.h (revision 72e8f2456af54b75a0a1d92aadfce0b4bcde6ba1)
14ce3e99aSScott Branden /*
24ce3e99aSScott Branden  * Copyright 2020 Broadcom
34ce3e99aSScott Branden  *
44ce3e99aSScott Branden  * SPDX-License-Identifier: BSD-3-Clause
54ce3e99aSScott Branden  */
64ce3e99aSScott Branden /*
7*4c700c15SGovindraj Raja  * Portions copyright (c) 2020, Arm Limited and Contributors.
84ce3e99aSScott Branden  * All rights reserved.
94ce3e99aSScott Branden  */
104ce3e99aSScott Branden 
114ce3e99aSScott Branden #ifndef STDINT__H
124ce3e99aSScott Branden #define STDINT__H
134ce3e99aSScott Branden 
144ce3e99aSScott Branden #define INT64_MAX  LONG_MAX
154ce3e99aSScott Branden #define INT64_MIN  LONG_MIN
164ce3e99aSScott Branden #define UINT64_MAX ULONG_MAX
174ce3e99aSScott Branden 
184ce3e99aSScott Branden #define INT64_C(x) x ## L
194ce3e99aSScott Branden #define UINT64_C(x) x ## UL
204ce3e99aSScott Branden 
214ce3e99aSScott Branden typedef long int64_t;
224ce3e99aSScott Branden typedef unsigned long uint64_t;
234ce3e99aSScott Branden typedef long int64_least_t;
244ce3e99aSScott Branden typedef unsigned long uint64_least_t;
254ce3e99aSScott Branden typedef long int64_fast_t;
264ce3e99aSScott Branden typedef unsigned long uint64_fast_t;
274ce3e99aSScott Branden 
284ce3e99aSScott Branden typedef __int128 int128_t;
294ce3e99aSScott Branden typedef unsigned __int128 uint128_t;
304ce3e99aSScott Branden 
314ce3e99aSScott Branden #endif
32