[coreboot-gerrit] New patch to review for coreboot: c05398d libpayload: Add more integer limits
Stefan Tauner (stefan.tauner@gmx.at)
gerrit at coreboot.org
Tue Jun 25 19:29:30 CEST 2013
Stefan Tauner (stefan.tauner at gmx.at) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3536
-gerrit
commit c05398d8d1d7914e5b1f960eaf60b0bc16065466
Author: Stefan Tauner <stefan.tauner at gmx.at>
Date: Tue Jun 25 18:48:31 2013 +0200
libpayload: Add more integer limits
Change-Id: If0963237806804a2a9d7f622c33013321379a04d
Signed-off-by: Stefan Tauner <stefan.tauner at gmx.at>
---
payloads/libpayload/include/stdint.h | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/payloads/libpayload/include/stdint.h b/payloads/libpayload/include/stdint.h
index 966a1ed..dbdcbb8 100644
--- a/payloads/libpayload/include/stdint.h
+++ b/payloads/libpayload/include/stdint.h
@@ -38,7 +38,20 @@ typedef unsigned long long uintmax_t;
typedef unsigned long uintptr_t;
typedef long intptr_t;
-#define UINT32_MAX (4294967295U)
-#define UINT64_MAX (18446744073709551615ULL)
+
+#define INT8_MAX (127)
+#define INT16_MAX (32767)
+#define INT32_MAX (2147483647)
+#define INT64_MAX (9223372036854775807LL)
+
+#define INT8_MIN (-INT8_MAX - 1)
+#define INT16_MIN (-INT16_MIN - 1)
+#define INT32_MIN (-INT32_MIN - 1)
+#define INT64_MIN (-INT64_MIN - 1)
+
+#define UINT8_MAX (255)
+#define UINT16_MAX (65535)
+#define UINT32_MAX (4294967295U)
+#define UINT64_MAX (18446744073709551615ULL)
#endif
More information about the coreboot-gerrit
mailing list