mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
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'.
This commit is contained in:
@@ -3,6 +3,7 @@ tests/test-count-one-bits.c
|
|||||||
tests/macros.h
|
tests/macros.h
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
|
limits-h
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
|
|
||||||
|
@@ -29,11 +29,6 @@
|
|||||||
#define ULONG_BIT (sizeof (unsigned long int) * CHAR_BIT)
|
#define ULONG_BIT (sizeof (unsigned long int) * CHAR_BIT)
|
||||||
#define ULLONG_BIT (sizeof (unsigned long 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
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user