summaryrefslogtreecommitdiff
path: root/big.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-27 20:06:43 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-27 20:06:43 -0400
commit3b89bde227c043133449f51f759f62b7fbcb5786 (patch)
tree49ec51d6c08b8ae3dfeb0c40233e280c4d3338a8 /big.h
parentd8a7702a7255c9a829f4c57846f9257c4607f9cb (diff)
rename poz() and neg() to big_is_positive() and big_is_negative()
Diffstat (limited to 'big.h')
-rw-r--r--big.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/big.h b/big.h
index ce8b91c..36d1ba2 100644
--- a/big.h
+++ b/big.h
@@ -17,8 +17,8 @@
#define digit0(x) (hd[x]&MAXDIGIT)
#define digit(x) hd[x]
#define rest(x) tl[x]
-#define poz(x) (!(hd[x]&SIGNBIT))
-#define neg(x) (hd[x]&SIGNBIT)
+#define big_is_positive(x) (!(hd[x]&SIGNBIT))
+#define big_is_negative(x) (hd[x]&SIGNBIT)
#define bigzero(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)