mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Implement scm_logbit_p with new integer library
* libguile/integers.c (scm_integer_logbit_ui, scm_integer_logbit_uz): * libguile/integers.h: Declare the new internal functions. * libguile/numbers.c (scm_logbit_p): Use new internal functions.
This commit is contained in:
parent
6298d73115
commit
89cd48fcac
3 changed files with 25 additions and 16 deletions
|
@ -148,6 +148,9 @@ SCM_INTERNAL int scm_integer_logtest_ii (scm_t_inum x, scm_t_inum y);
|
|||
SCM_INTERNAL int scm_integer_logtest_zi (SCM x, scm_t_inum y);
|
||||
SCM_INTERNAL int scm_integer_logtest_zz (SCM x, SCM y);
|
||||
|
||||
SCM_INTERNAL int scm_integer_logbit_ui (unsigned long bit, scm_t_inum n);
|
||||
SCM_INTERNAL int scm_integer_logbit_uz (unsigned long bit, SCM n);
|
||||
|
||||
|
||||
|
||||
#endif /* SCM_INTEGERS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue