projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
num_exp: bitwise ops and op precedence
[m6w6/ext-psi]
/
psi.d
/
stdlib.psi
diff --git
a/psi.d/stdlib.psi
b/psi.d/stdlib.psi
index bcc884d7b9d30a6f18d310eb13d50527e3126465..6cf8e82b8da0bddfe36d31fc1c473593784786cd 100644
(file)
--- 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);
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
}
\ No newline at end of file