From 0c061784519c069853ba9e9794fc4ec41d0668f9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 28 Mar 2022 16:49:13 -0400 Subject: rename bigzero() to big_is_zero() --- big.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'big.h') 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) -- cgit v1.2.1