shithub: riscv

Download patch

ref: 0e1fec841e7cc9291110284a946d1d0489fc7713
parent: 3fe2924287628a02d9c5f7d208a5af4623588034
author: Ori Bernstein <[email protected]>
date: Tue Mar 24 10:41:31 EDT 2020

add intmax_t/uintmax_t as required by c99 7.18.1.5

--- a/sys/include/ape/stdint.h
+++ b/sys/include/ape/stdint.h
@@ -14,10 +14,12 @@
 typedef short int16_t;
 typedef int int32_t;
 typedef long long int64_t;
+typedef long long intmax_t;
 typedef unsigned char uint8_t;
 typedef unsigned short uint16_t;
 typedef unsigned int uint32_t;
 typedef unsigned long long uint64_t;
+typedef unsigned long long uintmax_t;
 
 typedef _intptr_t intptr_t;
 typedef _uintptr_t uintptr_t;
@@ -36,11 +38,13 @@
 #define INT16_MAX	0x7fff
 #define INT32_MAX	0x7fffffff
 #define INT64_MAX	0x7fffffffffffffffULL
+#define INTMAX_MAX	INT64_MAX
 
 #define UINT8_MAX	0xff
 #define UINT16_MAX	0xffff
 #define UINT32_MAX	0xffffffffL
 #define UINT64_MAX	0xffffffffffffffffULL
+#define UINTMAX_MAX	UINT64_MAX
 
 /* 
  * Right now, all of our size_t types are 32 bit, even on