mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Implement truncate-remainder with new integer lib
* libguile/integers.c (scm_integer_truncate_remainder_ii) (scm_integer_truncate_remainder_iz, scm_integer_truncate_remainder_zi) (scm_integer_truncate_remainder_zz): New internal functions. * libguile/integers.h: Declare internal functions. * libguile/numbers.c (scm_truncate_remainder): Use the new functions.
This commit is contained in:
parent
ff636774b4
commit
cbd62a0ef3
3 changed files with 68 additions and 45 deletions
|
@ -72,6 +72,11 @@ SCM_INTERNAL SCM scm_integer_truncate_quotient_iz (scm_t_inum x, SCM y);
|
|||
SCM_INTERNAL SCM scm_integer_truncate_quotient_zi (SCM x, scm_t_inum y);
|
||||
SCM_INTERNAL SCM scm_integer_truncate_quotient_zz (SCM x, SCM y);
|
||||
|
||||
SCM_INTERNAL SCM scm_integer_truncate_remainder_ii (scm_t_inum x, scm_t_inum y);
|
||||
SCM_INTERNAL SCM scm_integer_truncate_remainder_iz (scm_t_inum x, SCM y);
|
||||
SCM_INTERNAL SCM scm_integer_truncate_remainder_zi (SCM x, scm_t_inum y);
|
||||
SCM_INTERNAL SCM scm_integer_truncate_remainder_zz (SCM x, SCM y);
|
||||
|
||||
|
||||
|
||||
#endif /* SCM_INTEGERS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue