1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-21 03:00:19 +02:00

Implement abs with new integer lib

* libguile/integers.c (scm_integer_abs_i, scm_integer_abs_z): New
internal functions.
* libguile/integers.h: Declare internal functions.
* libguile/numbers.c (scm_abs): Use the new functions.
This commit is contained in:
Andy Wingo 2021-12-03 14:23:51 +01:00
parent 5321899b9a
commit 44c654aa3e
3 changed files with 27 additions and 16 deletions

View file

@ -26,6 +26,9 @@
SCM_INTERNAL int scm_is_integer_odd_i (scm_t_inum i);
SCM_INTERNAL int scm_is_integer_odd_z (SCM z);
SCM_INTERNAL SCM scm_integer_abs_i (scm_t_inum i);
SCM_INTERNAL SCM scm_integer_abs_z (SCM z);
#endif /* SCM_INTEGERS_H */