diff options
author | Andy Wingo <wingo@pobox.com> | 2021-12-05 22:08:39 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2022-01-13 09:37:16 +0100 |
commit | 2e8036ff0f2d76c363527d4d62a76d47ee451773 (patch) | |
tree | 0faa297a1ffce68940d00c3e449e5f9ae4d23998 /libguile/integers.h | |
parent | 31da9be6c49eb14c2292312ba9cff737a3a107e6 (diff) | |
download | guile-2e8036ff0f2d76c363527d4d62a76d47ee451773.tar.gz |
Implement floor-remainder with new integer lib
* libguile/integers.c (scm_integer_floor_remainder_ii)
(scm_integer_floor_remainder_iz, scm_integer_floor_remainder_zi)
(scm_integer_floor_remainder_zz): New internal functions.
* libguile/integers.h: Declare internal functions.
* libguile/numbers.c (scm_floor_remainder): Use the new functions.
Diffstat (limited to 'libguile/integers.h')
-rw-r--r-- | libguile/integers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libguile/integers.h b/libguile/integers.h index 99e4246cd..671d32ae3 100644 --- a/libguile/integers.h +++ b/libguile/integers.h @@ -34,6 +34,11 @@ SCM_INTERNAL SCM scm_integer_floor_quotient_iz (scm_t_inum x, SCM y); SCM_INTERNAL SCM scm_integer_floor_quotient_zi (SCM x, scm_t_inum y); SCM_INTERNAL SCM scm_integer_floor_quotient_zz (SCM x, SCM y); +SCM_INTERNAL SCM scm_integer_floor_remainder_ii (scm_t_inum x, scm_t_inum y); +SCM_INTERNAL SCM scm_integer_floor_remainder_iz (scm_t_inum x, SCM y); +SCM_INTERNAL SCM scm_integer_floor_remainder_zi (SCM x, scm_t_inum y); +SCM_INTERNAL SCM scm_integer_floor_remainder_zz (SCM x, SCM y); + #endif /* SCM_INTEGERS_H */ |