summaryrefslogtreecommitdiff
path: root/lib/count-one-bits.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-22 09:34:06 +0100
committerBruno Haible <bruno@clisp.org>2019-12-22 09:34:06 +0100
commit4069d42575181bd484af4f433c0d0d5358470a80 (patch)
treeefe440c9e124736a1e012dcf049aca172b753b2c /lib/count-one-bits.h
parent00b4820cc972dd38f6251a21d255ee63419a1d45 (diff)
downloadgnulib-4069d42575181bd484af4f433c0d0d5358470a80.tar.gz
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. * modules/count-one-bits (Files): Remove it. (configure.ac): Don't invoke gl_COUNT_ONE_BITS. * tests/test-count-one-bits.c (main): Test count_one_bits_ll unconditionally.
Diffstat (limited to 'lib/count-one-bits.h')
-rw-r--r--lib/count-one-bits.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/count-one-bits.h b/lib/count-one-bits.h
index 0056994188..440d1aa38a 100644
--- a/lib/count-one-bits.h
+++ b/lib/count-one-bits.h
@@ -122,14 +122,12 @@ count_one_bits_l (unsigned long int x)
COUNT_ONE_BITS (__builtin_popcountl, __popcnt, unsigned long int);
}
-#if HAVE_UNSIGNED_LONG_LONG_INT
/* Compute and return the number of 1-bits set in X. */
COUNT_ONE_BITS_INLINE int
count_one_bits_ll (unsigned long long int x)
{
COUNT_ONE_BITS (__builtin_popcountll, __popcnt64, unsigned long long int);
}
-#endif
_GL_INLINE_HEADER_END