diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 16:32:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 16:32:00 -0400 |
| commit | e0223a4c201b42ca35c73bfad84477efc61f06b2 (patch) | |
| tree | 7f83903c19433c67e102a8688c3af02fd63eab0a /environment.c | |
| parent | aaac5dff28b2fa4835dd9a3a352f274069a7b432 (diff) | |
Support ^ exponentiation for integers
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 57fbc6fa..c8056cc5 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"}, + {"power", "Int$power", "func(base:Int,exponent:Int)->Int"}, )}, {"Int64", Type(IntType, .bits=64), "Int64_t", "$Int64", TypedArray(ns_entry_t, {"format", "Int64$format", "func(i:Int64, digits=0)->Text"}, |
