diff options
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) |