Add four new sets of fast quotient and remainder operators
authorMark H Weaver <mhw@netris.org>
Sun, 13 Feb 2011 14:16:27 +0000 (09:16 -0500)
committerAndy Wingo <wingo@pobox.com>
Mon, 14 Feb 2011 19:30:53 +0000 (20:30 +0100)
commit8f9da3406b507058475db2e8dde6fbb50d12faf7
tree2f885066ba42c049773d1a93349126fece818990
parent03ddd15baed49dcfed0d7fc76648778b76df56d3
Add four new sets of fast quotient and remainder operators

* libguile/numbers.c (scm_floor_divide, scm_floor_quotient,
  scm_floor_remainder, scm_ceiling_divide, scm_ceiling_quotient,
  scm_ceiling_remainder, scm_truncate_divide, scm_truncate_quotient,
  scm_truncate_remainder, scm_round_divide, scm_round_quotient,
  scm_round_remainder): New extensible procedures `floor/',
  `floor-quotient', `floor-remainder', `ceiling/', `ceiling-quotient',
  `ceiling-remainder', `truncate/', `truncate-quotient',
  `truncate-remainder', `round/', `round-quotient', and
  `round-remainder'.

* libguile/numbers.h: Add function prototypes.

* test-suite/tests/numbers.test: Add tests.

* doc/ref/api-data.texi (Arithmetic): Add documentation.

* NEWS: Add NEWS entry.
NEWS
doc/ref/api-data.texi
libguile/numbers.c
libguile/numbers.h
test-suite/tests/numbers.test