mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Removing top-level sqrt
This isn't good enough, there are going to be bootstrap compilation problems undoing this...
This commit is contained in:
parent
a2568d8589
commit
32af1bcd05
1 changed files with 2 additions and 2 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Reference in a new issue