[PATCH] INT_MIN

From: Rusty Russell (rusty@linuxcare.com.au)
Date: Wed Mar 15 2000 - 02:24:40 EST


Linus, please apply.

Needed for netfilter code, and makes more sense here than in a .c
file.

--- linux-2.3-official/include/linux/kernel.h Tue Mar 14 23:55:31 2000
+++ linux-2.3-nfmerge/include/linux/kernel.h Wed Mar 15 18:23:12 2000
@@ -15,8 +15,10 @@
 #define barrier() __asm__ __volatile__("": : :"memory")
 
 #define INT_MAX ((int)(~0U>>1))
+#define INT_MIN (-INT_MAX - 1)
 #define UINT_MAX (~0U)
 #define LONG_MAX ((long)(~0UL>>1))
+#define LONG_MIN (-LONG_MAX - 1)
 #define ULONG_MAX (~0UL)
 
 #define STACK_MAGIC 0xdeadbeef

--
Hacking time.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:29 EST