]> Savannah Git Hosting - gnulib.git/commitdiff
integer_length*: Assume that the compiler supports 'long long'.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Dec 2019 08:43:25 +0000 (09:43 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Dec 2019 08:43:25 +0000 (09:43 +0100)
* 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
lib/integer_length.h
modules/integer_length
modules/integer_length_l
modules/integer_length_ll

index 81eb5e6edbff4baf5a9001990a52febc694fbef5..0d9c54674b6253dab4b480d2bec10fcbc33d56cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2019-12-22  Bruno Haible  <bruno@clisp.org>
 
+       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.
index 4c3b34593fcf4f8bab486a5823b55048fda55ec6..f3d06a99dd58ce79517b28c64af50d360cf413c4 100644 (file)
@@ -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
 }
index f37713b037c412e98c8de75c7d9f521d45f879e0..86f257b3e12f65beb9f0d1f9d26dd3dbd2886273 100644 (file)
@@ -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:
index 768e9fb3f829575864dbadaf20c22e5dec32d8ea..59a4b4f251b4a7c0cb2ee3dcdca18baf27aeb3c5 100644 (file)
@@ -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
index 96218cca415160f87a72a1dcaf1049ae8d9731a0..eadcbe0e593434e7b1f33707028c8b0e95010ae1 100644 (file)
@@ -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