summaryrefslogtreecommitdiff
path: root/tests/test-count-one-bits.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-09-06 14:48:00 +0200
committerBruno Haible <bruno@clisp.org>2018-09-06 14:48:00 +0200
commit2bbce4309739a9b396f6839922f0e34ae757daf6 (patch)
treebad6cd6923f25b369e5b2b6d2335a03233b0e5fa /tests/test-count-one-bits.c
parentc4b2df3e3a859ac2eebc3f1685bdc6ff3d4c3ba3 (diff)
downloadgnulib-2bbce4309739a9b396f6839922f0e34ae757daf6.tar.gz
count-one-bits tests: Rely on limits-h module.
* tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition. * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
Diffstat (limited to 'tests/test-count-one-bits.c')
-rw-r--r--tests/test-count-one-bits.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/test-count-one-bits.c b/tests/test-count-one-bits.c
index fef087edbd..0215e77100 100644
--- a/tests/test-count-one-bits.c
+++ b/tests/test-count-one-bits.c
@@ -29,11 +29,6 @@
#define ULONG_BIT (sizeof (unsigned long int) * CHAR_BIT)
#define ULLONG_BIT (sizeof (unsigned long long int) * CHAR_BIT)
-#ifndef ULLONG_MAX
-# define HALF (1ULL << (sizeof (unsigned long long int) * CHAR_BIT - 1))
-# define ULLONG_MAX (HALF - 1 + HALF)
-#endif
-
int
main (int argc, char *argv[])
{