Mercurial > gnulib
changeset 39822:42f02b3c8b20
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'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 06 Sep 2018 14:48:00 +0200 |
parents | 849fcaf40bbf |
children | 8d6b7f9dda89 |
files | modules/count-one-bits-tests tests/test-count-one-bits.c |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/count-one-bits-tests Thu Sep 06 14:46:06 2018 +0200 +++ b/modules/count-one-bits-tests Thu Sep 06 14:48:00 2018 +0200 @@ -3,6 +3,7 @@ tests/macros.h Depends-on: +limits-h configure.ac:
--- a/tests/test-count-one-bits.c Thu Sep 06 14:46:06 2018 +0200 +++ b/tests/test-count-one-bits.c Thu Sep 06 14:48:00 2018 +0200 @@ -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[]) {