diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-27 20:06:43 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-27 20:06:43 -0400 |
commit | 3b89bde227c043133449f51f759f62b7fbcb5786 (patch) | |
tree | 49ec51d6c08b8ae3dfeb0c40233e280c4d3338a8 /big.h | |
parent | d8a7702a7255c9a829f4c57846f9257c4607f9cb (diff) |
rename poz() and neg() to big_is_positive() and big_is_negative()
Diffstat (limited to 'big.h')
-rw-r--r-- | big.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |