Skip to content

Commit

Permalink
Removing top-level sqrt
Browse files Browse the repository at this point in the history
This isn't good enough, there are going to be bootstrap compilation problems undoing this...
  • Loading branch information
justinethier committed Mar 12, 2024
1 parent a2568d8 commit 32af1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheme/base.sld
Original file line number Diff line number Diff line change
Expand Up @@ -1437,10 +1437,10 @@
(error "exact non-negative integer required" k))
(let* ((s (if (bignum? k)
(bignum-sqrt k)
(exact (truncate (sqrt k)))))
(exact (truncate (_sqrt k)))))
(r (- k (* s s))))
(values s r)))
(define-c sqrt
(define-c _sqrt
"(void *data, int argc, closure _, object k, object z)"
" return_inexact_double_op(data, k, sqrt, z);"
"(void *data, object ptr, object z)"
Expand Down

0 comments on commit 32af1bc

Please sign in to comment.