summaryrefslogtreecommitdiff
path: root/lisp/mp/mp.h
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2012-05-24 15:26:50 -0300
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-31 23:00:34 -0700
commit63c70c830c79f0b4cfc0f7393662a9cb1169973e (patch)
tree9d68dc0b5c22af5da916854627566be8b7d78d48 /lisp/mp/mp.h
parentc110109f1710758d7c87c05720bdff4df316fc7d (diff)
Correct 64 bit overflow check and bignum code.
Signed-off-by: pcpa <paulo.cesar.pereira.de.andrade@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'lisp/mp/mp.h')
-rw-r--r--lisp/mp/mp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mp/mp.h b/lisp/mp/mp.h
index 8bcb127..c5a74f3 100644
--- a/lisp/mp/mp.h
+++ b/lisp/mp/mp.h
@@ -76,6 +76,7 @@
# define BNI unsigned long
# define BNS unsigned int
# define MINSLONG 0x8000000000000000UL
+# define MAXSLONG 0x7fffffffffffffffUL
# define CARRY 0x100000000
# define LMASK 0xffffffff00000000UL
# define SMASK 0x00000000ffffffffUL
@@ -89,6 +90,7 @@
# define BNI unsigned long
# define BNS unsigned short
# define MINSLONG 0x80000000UL
+# define MAXSLONG 0x7fffffffUL
# define CARRY 0x10000
# define LMASK 0xffff0000UL
# define SMASK 0x0000ffffUL