Skip to content

Commit 14685d2

Browse files
author
Jethro Beekman
committed
Add f32 versions of WebAssembly math functions
1 parent 939cbca commit 14685d2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/math.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ no_mangle! {
5151
fn fmodf(x: f32, y: f32) -> f32;
5252
fn fma(x: f64, y: f64, z: f64) -> f64;
5353
fn fmaf(x: f32, y: f32, z: f32) -> f32;
54+
fn acosf(n: f32) -> f32;
55+
fn asinf(n: f32) -> f32;
56+
fn atan2f(a: f32, b: f32) -> f32;
57+
fn atanf(n: f32) -> f32;
58+
fn cbrtf(n: f32) -> f32;
59+
fn coshf(n: f32) -> f32;
60+
fn expm1f(n: f32) -> f32;
61+
fn fdimf(a: f32, b: f32) -> f32;
62+
fn hypotf(x: f32, y: f32) -> f32;
63+
fn log1pf(n: f32) -> f32;
64+
fn sinhf(n: f32) -> f32;
65+
fn tanf(n: f32) -> f32;
66+
fn tanhf(n: f32) -> f32;
5467
}
5568

5669
// only for the thumb*-none-eabi* targets

0 commit comments

Comments
 (0)