diff options
author | Mark H Weaver <mhw@netris.org> | 2019-04-28 03:45:11 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2019-05-07 04:39:52 -0400 |
commit | 5b42fd80d7765953c472ffc002351e04cc307bad (patch) | |
tree | 0044eb8d3807d7bbfc2fc623ddaa0bb4ad6c69e3 /libguile/r6rs-ports.c | |
parent | 162a031e5f2c64cd23fcf069fb7b5071196f9527 (diff) |
Optimize fixnum exact integer square roots.
* libguile/numbers.c (scm_exact_integer_sqrt, scm_sqrt)
(exact_integer_is_perfect_square, exact_integer_floor_square_root):
Where it is trivial to do so, use GMP's low-level mpn functions to
avoid heap allocation.
Diffstat (limited to 'libguile/r6rs-ports.c')
0 files changed, 0 insertions, 0 deletions