summaryrefslogtreecommitdiff
path: root/StdLib/Include/Ia32
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/Include/Ia32')
-rw-r--r--StdLib/Include/Ia32/machine/limits.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/StdLib/Include/Ia32/machine/limits.h b/StdLib/Include/Ia32/machine/limits.h
index 62fbe40b42..0b3cfbe4c5 100644
--- a/StdLib/Include/Ia32/machine/limits.h
+++ b/StdLib/Include/Ia32/machine/limits.h
@@ -1,3 +1,14 @@
#include <x86/limits.h>
#define __POINTER_BIT 32
+#define __LONG_BIT 32
+
+/** minimum value for an object of type long int **/
+#define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1)
+
+/** maximum value for an object of type long int **/
+#define __LONG_MAX +2147483647L // 2^31 - 1
+
+/** maximum value for an object of type unsigned long int **/
+#define __ULONG_MAX 0xffffffff // 2^32 - 1
+