]> Savannah Git Hosting - gnulib.git/commitdiff
count-trailing-zeros tests: Rely on limits-h module.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:50:04 +0000 (14:50 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:50:04 +0000 (14:50 +0200)
* tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
definition.
* modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.

ChangeLog
modules/count-trailing-zeros-tests
tests/test-count-trailing-zeros.c

index 460fa9f306bcb26bb60d6416d0d67c28ecef5829..a66610f1199c85e4436e74a3e6952b6be255d9af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-09-06  Bruno Haible  <bruno@clisp.org>
+
+       count-trailing-zeros tests: Rely on limits-h module.
+       * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
+       definition.
+       * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
+
 2018-09-06  Bruno Haible  <bruno@clisp.org>
 
        count-leading-zeros tests: Rely on limits-h module.
index 88b2d0a4ee36acbb6db1f7094a77fdd15ba670a5..1b7e6385f780632710251562d325ac956a90a2ad 100644 (file)
@@ -3,6 +3,7 @@ tests/test-count-trailing-zeros.c
 tests/macros.h
 
 Depends-on:
+limits-h
 
 configure.ac:
 
index 6edd55047cbef1d3f9bd413a1fa89c902dca4b8f..862e57d331dbee344a367ff53d30fa602cb6101c 100644 (file)
 #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[])
 {