summaryrefslogtreecommitdiff
path: root/big.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-28 16:49:13 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-28 16:49:13 -0400
commit0c061784519c069853ba9e9794fc4ec41d0668f9 (patch)
tree0f6f2732d5319bb8a5df36ee875d63653183ac1e /big.h
parentb7220bcd1a054872e081afc77b305f0247bf3f98 (diff)
rename bigzero() to big_is_zero()
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)