wasm: implement sin, cos, tan, sqrt, log, and pow

This commit is contained in:
Brian Carroll 2022-06-19 19:17:20 +01:00
parent dbb4b31ebe
commit f5b46bf650
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
5 changed files with 88 additions and 17 deletions

View file

@ -116,6 +116,12 @@ comptime {
num.exportAcos(T, ROC_BUILTINS ++ "." ++ NUM ++ ".acos.");
num.exportAtan(T, ROC_BUILTINS ++ "." ++ NUM ++ ".atan.");
num.exportSin(T, ROC_BUILTINS ++ "." ++ NUM ++ ".sin.");
num.exportCos(T, ROC_BUILTINS ++ "." ++ NUM ++ ".cos.");
num.exportPow(T, ROC_BUILTINS ++ "." ++ NUM ++ ".pow.");
num.exportLog(T, ROC_BUILTINS ++ "." ++ NUM ++ ".log.");
num.exportIsFinite(T, ROC_BUILTINS ++ "." ++ NUM ++ ".is_finite.");
}
}