summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--lib/integer_length.h2
-rw-r--r--modules/integer_length2
-rw-r--r--modules/integer_length_l2
-rw-r--r--modules/integer_length_ll2
5 files changed, 9 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 81eb5e6edb..0d9c54674b 100644
--- 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.
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