num_exp: bitwise ops and op precedence
[m6w6/ext-psi] / psi.d / stdlib.psi
index bcc884d7b9d30a6f18d310eb13d50527e3126465..6cf8e82b8da0bddfe36d31fc1c473593784786cd 100644 (file)
@@ -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