projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement SQRT function
[jscl.git]
/
src
/
compiler
/
compiler.lisp
diff --git
a/src/compiler/compiler.lisp
b/src/compiler/compiler.lisp
index
e3bac18
..
25ad560
100644
(file)
--- a/
src/compiler/compiler.lisp
+++ b/
src/compiler/compiler.lisp
@@
-1018,6
+1018,9
@@
(define-builtin expt (x y)
`(method-call |Math| "pow" ,x ,y))
+(define-builtin sqrt (x)
+ `(method-call |Math| "sqrt" ,x))
+
(define-builtin float-to-string (x)
`(call |make_lisp_string| (method-call ,x |toString|)))