>From 3a5d13f42ba42a4e1625bdbcdd93bd2099c550a0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 Dec 2019 09:43:25 +0100 Subject: [PATCH 04/15] integer_length*: Assume that the compiler supports 'long long'. * lib/integer_length.h (integer_length_ll): Declare unconditionally. * modules/integer_length (Files): Remove longlong.m4. (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. * modules/integer_length_l (Files): Remove longlong.m4. (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. * modules/integer_length_ll (Files): Remove longlong.m4. (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. --- ChangeLog | 9 +++++++++ lib/integer_length.h | 2 -- modules/integer_length | 2 -- modules/integer_length_l | 2 -- modules/integer_length_ll | 2 -- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81eb5e6..0d9c546 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2019-12-22 Bruno Haible + integer_length*: Assume that the compiler supports 'long long'. + * lib/integer_length.h (integer_length_ll): Declare unconditionally. + * modules/integer_length (Files): Remove longlong.m4. + (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. + * modules/integer_length_l (Files): Remove longlong.m4. + (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. + * modules/integer_length_ll (Files): Remove longlong.m4. + (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT. + count-one-bits: Assume that the compiler supports 'long long'. * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally. * m4/count-one-bits.m4: Remove file. diff --git a/lib/integer_length.h b/lib/integer_length.h index 4c3b345..f3d06a9 100644 --- a/lib/integer_length.h +++ b/lib/integer_length.h @@ -36,11 +36,9 @@ extern int integer_length (unsigned int x); The result is >= 0, <= sizeof (unsigned long) * CHAR_BIT. */ extern int integer_length_l (unsigned long x); -#if HAVE_UNSIGNED_LONG_LONG_INT /* Returns the integer length of x. The result is >= 0, <= sizeof (unsigned long long) * CHAR_BIT. */ extern int integer_length_ll (unsigned long long x); -#endif #ifdef __cplusplus } diff --git a/modules/integer_length b/modules/integer_length index f37713b..86f257b 100644 --- a/modules/integer_length +++ b/modules/integer_length @@ -5,14 +5,12 @@ Files: lib/integer_length.h lib/integer_length.c lib/float+.h -m4/longlong.m4 m4/exponentd.m4 Depends-on: float configure.ac: -AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION]) Makefile.am: diff --git a/modules/integer_length_l b/modules/integer_length_l index 768e9fb..59a4b4f 100644 --- a/modules/integer_length_l +++ b/modules/integer_length_l @@ -4,13 +4,11 @@ Finds the most significant bit in an 'unsigned long'. Files: lib/integer_length.h lib/integer_length_l.c -m4/longlong.m4 Depends-on: integer_length configure.ac: -AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) Makefile.am: lib_SOURCES += integer_length_l.c diff --git a/modules/integer_length_ll b/modules/integer_length_ll index 96218cc..eadcbe0 100644 --- a/modules/integer_length_ll +++ b/modules/integer_length_ll @@ -5,13 +5,11 @@ Files: lib/integer_length.h lib/integer_length_ll.c lib/integer_length_l.c -m4/longlong.m4 Depends-on: integer_length configure.ac: -AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) Makefile.am: lib_SOURCES += integer_length_ll.c -- 2.7.4