aboutsummaryrefslogtreecommitdiff
path: root/include/lib/libc/aarch64/stdint_.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:59:52 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:59:52 +0000
commit2beb3a69f30a600ae3ec27334e189649379b9329 (patch)
tree2ce8a4e341ac9f98fb265347777487eda74eba48 /include/lib/libc/aarch64/stdint_.h
parent0f2974e30f5150b29f1dff5ec041d74ac687327c (diff)
parent138668cae2394deb5d695c70fe4aa9760c4458ee (diff)
downloadarm-trusted-firmware-2beb3a69f30a600ae3ec27334e189649379b9329.tar.gz
Change-Id: I4cf7f6eba068f9a96359b9ea4386cfb69e72d1ea
Diffstat (limited to 'include/lib/libc/aarch64/stdint_.h')
-rw-r--r--include/lib/libc/aarch64/stdint_.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/lib/libc/aarch64/stdint_.h b/include/lib/libc/aarch64/stdint_.h
new file mode 100644
index 000000000..56e9f1b4c
--- /dev/null
+++ b/include/lib/libc/aarch64/stdint_.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2020 Broadcom
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+/*
+ * Portions copyright (c) 2020, ARM Limited and Contributors.
+ * All rights reserved.
+ */
+
+#ifndef STDINT__H
+#define STDINT__H
+
+#define INT64_MAX LONG_MAX
+#define INT64_MIN LONG_MIN
+#define UINT64_MAX ULONG_MAX
+
+#define INT64_C(x) x ## L
+#define UINT64_C(x) x ## UL
+
+typedef long int64_t;
+typedef unsigned long uint64_t;
+typedef long int64_least_t;
+typedef unsigned long uint64_least_t;
+typedef long int64_fast_t;
+typedef unsigned long uint64_fast_t;
+
+typedef __int128 int128_t;
+typedef unsigned __int128 uint128_t;
+
+#endif