implement sqrt(long)

This commit is contained in:
Irmen de Jong
2026-02-15 17:11:31 +01:00
parent 07be7f0154
commit 6a0b22bb64
8 changed files with 298 additions and 116 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Math
:index:`sqrt` (x)
Returns the square root of the number.
Accepts unsigned integer (result is ubyte), long (result is uword, but this may not be implemented on all targets), and floating point numbers.
Accepts unsigned integer (result is ubyte), long (result is uword), and floating point numbers.
To do the reverse - squaring a number - just write ``x*x``.
+5
View File
@@ -1,6 +1,11 @@
TODO
====
- FSignature.callConvention should not pass long via R14R15
- func_sign_l_r14r15_into_A should not take the long in r14r15 but in regular parameter like sqrt_long
Known bugs:
- fix chained aliasing errors see test "chained aliasing"
- fix crash in ir loader/vm for deeply nested symbol reference, see test "deeply scoped variable references"