From: Bruno Haible Date: Sun, 22 Dec 2019 08:43:25 +0000 (+0100) Subject: integer_length*: Assume that the compiler supports 'long long'. X-Git-Tag: v1.0~4448 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3a5d13f42ba42a4e1625bdbcdd93bd2099c550a0;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 81eb5e6edb..0d9c54674b 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 4c3b34593f..f3d06a99dd 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 f37713b037..86f257b3e1 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 768e9fb3f8..59a4b4f251 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 96218cca41..eadcbe0e59 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