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:
parent
5321899b9a
commit
44c654aa3e
3 changed files with 27 additions and 16 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue