summaryrefslogtreecommitdiff
path: root/modules/count-one-bits
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:05 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:50 -0800
commitaa7a0991de0882f7e5c62def3c53eb738cc299d4 (patch)
treec17442ade5f00926c782365ff1fa112bd0b56332 /modules/count-one-bits
parent82d259c28dd5be149c34e76d71e4368cc26c42fb (diff)
downloadgnulib-aa7a0991de0882f7e5c62def3c53eb738cc299d4.tar.gz
count-one-bits: better 'inline'
* lib/count-one-bits.c: New file. * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Do not require AC_C_INLINE. * modules/count-one-bits (Files, lib_SOURCES): Add lib/count-one-bits.c. (Depends-on): Add extern-inline.
Diffstat (limited to 'modules/count-one-bits')
-rw-r--r--modules/count-one-bits3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/count-one-bits b/modules/count-one-bits
index b836bfa2c1..3922d85f8b 100644
--- a/modules/count-one-bits
+++ b/modules/count-one-bits
@@ -2,16 +2,19 @@ Description:
Counts the number of 1-bits in a word.
Files:
+lib/count-one-bits.c
lib/count-one-bits.h
m4/count-one-bits.m4
Depends-on:
+extern-inline
verify
configure.ac:
gl_COUNT_ONE_BITS
Makefile.am:
+lib_SOURCES += count-one-bits.c
Include:
"count-one-bits.h"