X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=psi.d%2Fstdlib.psi;h=6cf8e82b8da0bddfe36d31fc1c473593784786cd;hb=7df12c88a4e14611a2585d6e7c994c59e8d7485a;hp=bcc884d7b9d30a6f18d310eb13d50527e3126465;hpb=2454ceb434f8190937580d1cca96f5737908224e;p=m6w6%2Fext-psi 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