diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-28 16:49:13 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-28 16:49:13 -0400 |
commit | 0c061784519c069853ba9e9794fc4ec41d0668f9 (patch) | |
tree | 0f6f2732d5319bb8a5df36ee875d63653183ac1e /big.h | |
parent | b7220bcd1a054872e081afc77b305f0247bf3f98 (diff) |
rename bigzero() to big_is_zero()
Diffstat (limited to 'big.h')
-rw-r--r-- | big.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |