summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-06-19 01:13:42 +0200
committerKevin Ryde <user42@zip.com.au>2000-06-19 01:13:42 +0200
commit68756b82c9a28c23fab767a0bf6fffccc208e2a8 (patch)
tree40f171b50c0b4f88a333a643ac9a0eed6fc23508
parent78b928a0bd83a9471ab471a6d0fff3d7555df0ee (diff)
downloadgmp-68756b82c9a28c23fab767a0bf6fffccc208e2a8.tar.gz
Use BITS_PER_LONGINT, not LONG_BIT.
-rw-r--r--mpz/tests/t-misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpz/tests/t-misc.c b/mpz/tests/t-misc.c
index b25377e44..19d070a05 100644
--- a/mpz/tests/t-misc.c
+++ b/mpz/tests/t-misc.c
@@ -28,11 +28,11 @@ MA 02111-1307, USA.
#define numberof(x) (sizeof (x) / sizeof ((x)[0]))
-#ifndef LONG_BIT
-#define LONG_BIT (sizeof(long) * 8)
+#ifndef BITS_PER_LONGINT
+#define BITS_PER_LONGINT (sizeof(long) * 8)
#endif
-#define ULONG_HIGHBIT ((unsigned long) 1 << (LONG_BIT-1))
+#define ULONG_HIGHBIT ((unsigned long) 1 << (BITS_PER_LONGINT-1))
#define LONG_HIGHBIT ((long) ULONG_HIGHBIT)
#ifndef LONG_MAX