summaryrefslogtreecommitdiff
path: root/big.h
diff options
context:
space:
mode:
Diffstat (limited to 'big.h')
-rw-r--r--big.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/big.h b/big.h
index 9eb1406..9cfa12b 100644
--- a/big.h
+++ b/big.h
@@ -11,14 +11,13 @@
#define SIGNBIT 020000000000 /* most significant bit of 32 bit word */
#define IBASE 0100000 /* 2^15 (ie 8^5) so digit is a positive short */
#define MAXDIGIT 077777
-#define DIGITWIDTH 15
#define digit0(x) (hd[x]&MAXDIGIT)
#define digit(x) hd[x]
#define rest(x) tl[x]
#define big_is_positive(x) (!(hd[x]&SIGNBIT))
#define big_is_negative(x) (hd[x]&SIGNBIT)
-#define bigzero(x) (!digit(x)&&!rest(x))
+#define big_is_zero(x) (!digit(x)&&!rest(x))
#define getsmallint(x) (hd[x]&SIGNBIT?-digit0(x):digit(x))
#define stosmallint(x) make(INT,(x)<0?SIGNBIT|(-(x)):(x),0)