aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 16:36:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 16:36:41 -0400
commite56fd1aa94db77c6210c649c9cf8163678326355 (patch)
tree9e487108faea515f34dd6e5a3664d1272f12f74d /environment.c
parente0223a4c201b42ca35c73bfad84477efc61f06b2 (diff)
Add Int:sqrt()
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index c8056cc5..95cd4673 100644
--- a/environment.c
+++ b/environment.c
@@ -107,6 +107,7 @@ env_t *new_compilation_unit(CORD *libname)
{"negative", "Int$negative", "func(x:Int)->Int"},
{"negated", "Int$negated", "func(x:Int)->Int"},
{"abs", "Int$abs", "func(x:Int)->Int"},
+ {"sqrt", "Int$sqrt", "func(x:Int)->Int"},
{"power", "Int$power", "func(base:Int,exponent:Int)->Int"},
)},
{"Int64", Type(IntType, .bits=64), "Int64_t", "$Int64", TypedArray(ns_entry_t,