X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fstdlib.psi;fp=psi.d%2Fstdlib.psi;h=6cf8e82b8da0bddfe36d31fc1c473593784786cd;hp=bcc884d7b9d30a6f18d310eb13d50527e3126465;hb=7df12c88a4e14611a2585d6e7c994c59e8d7485a;hpb=8c3b5c915ddf11e03e595d7db8917b2b4711a35b diff --git a/psi.d/stdlib.psi b/psi.d/stdlib.psi index bcc884d..6cf8e82 100644 --- a/psi.d/stdlib.psi +++ b/psi.d/stdlib.psi @@ -26,4 +26,11 @@ function psi\strtold(string $str, string &$end = null) : float { let endptr = &NULL; return to_float(strtold); set $end = to_string(*endptr); +} + +extern double pow(double x, double y); +function psi\pow2() : float { + let x = 1 | 2; + let y = 1 << 1; + return to_float(pow); } \ No newline at end of file