summaryrefslogtreecommitdiff
path: root/libguile/integers.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2022-01-04 09:53:09 +0100
committerAndy Wingo <wingo@pobox.com>2022-01-13 09:37:16 +0100
commit7ec40fe5b08e5a05a0cd62f1f0920e83233d104e (patch)
tree2bebd2d99b5758edac1176794e5033d334cda845 /libguile/integers.h
parent88f56e91aa283421665cd736a2d4f138d737d815 (diff)
downloadguile-7ec40fe5b08e5a05a0cd62f1f0920e83233d104e.tar.gz
Implement scm_logcount with new integer library
* libguile/integers.c (scm_integer_logcount_i) (scm_integer_logcount_z): New internal functions. * libguile/integers.h: Declare the new internal functions. * libguile/numbers.c (scm_logcount): Use new internal functions.
Diffstat (limited to 'libguile/integers.h')
-rw-r--r--libguile/integers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/integers.h b/libguile/integers.h
index e77084ea3..3955e5ea8 100644
--- a/libguile/integers.h
+++ b/libguile/integers.h
@@ -168,6 +168,9 @@ SCM_INTERNAL SCM scm_integer_bit_extract_i (scm_t_inum n, unsigned long start,
SCM_INTERNAL SCM scm_integer_bit_extract_z (SCM n, unsigned long start,
unsigned long bits);
+SCM_INTERNAL SCM scm_integer_logcount_i (scm_t_inum n);
+SCM_INTERNAL SCM scm_integer_logcount_z (SCM n);
+
#endif /* SCM_INTEGERS_H */