summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 21:51:08 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 21:51:08 -0400
commitbcb5589f17f755b965dec49af3232a5a69a8e68f (patch)
treecefcf8b3c42e56038e1902bfae53fff8508c7b98 /base.h
parent9e68c6f3dd0b90f908c31c02fedb4b51836d4c8e (diff)
some cleanup
Diffstat (limited to 'base.h')
-rw-r--r--base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base.h b/base.h
index 9aba28a..be4031e 100644
--- a/base.h
+++ b/base.h
@@ -81,6 +81,10 @@ typedef int64_t i64;
// (for i8 and i16, you can use %d)
#define I32_FMT "%" PRId32
#define I64_FMT "%" PRId64
+#define I8_MIN ((i8)0x80)
+#define I16_MIN ((i16)0x8000)
+#define I32_MIN ((i32)0x80000000)
+#define I64_MIN ((i64)0x8000000000000000)
#define I8_MAX 0x7f
#define I16_MAX 0x7fff
#define I32_MAX 0x7fffffff