Commit 3a5d13f4 authored by Bruno Haible's avatar Bruno Haible
Browse files

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.
parent 4069d425
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.
......@@ -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
}
......
......@@ -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:
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment