mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Add more math intrinsics to test
Just in case more crop up!
This commit is contained in:
parent
7e1b31ab2e
commit
5638126598
@ -28,6 +28,7 @@ fn auto_bind_math() {
|
|||||||
b.exp() +
|
b.exp() +
|
||||||
b.exp2() +
|
b.exp2() +
|
||||||
b.mul_add(b, b) +
|
b.mul_add(b, b) +
|
||||||
|
b.ln() +
|
||||||
b.log(b) +
|
b.log(b) +
|
||||||
b.log10() +
|
b.log10() +
|
||||||
b.log2() +
|
b.log2() +
|
||||||
@ -35,11 +36,18 @@ fn auto_bind_math() {
|
|||||||
b.powf(b) +
|
b.powf(b) +
|
||||||
b.round() +
|
b.round() +
|
||||||
b.sin() +
|
b.sin() +
|
||||||
|
b.abs() +
|
||||||
|
b.signum() +
|
||||||
|
b.floor() +
|
||||||
|
b.ceil() +
|
||||||
|
b.trunc() +
|
||||||
|
b.sqrt() +
|
||||||
(b % (a as f64)) +
|
(b % (a as f64)) +
|
||||||
((a.cos() +
|
((a.cos() +
|
||||||
a.exp() +
|
a.exp() +
|
||||||
a.exp2() +
|
a.exp2() +
|
||||||
a.mul_add(a, a) +
|
a.mul_add(a, a) +
|
||||||
|
a.ln() +
|
||||||
a.log(a) +
|
a.log(a) +
|
||||||
a.log10() +
|
a.log10() +
|
||||||
a.log2() +
|
a.log2() +
|
||||||
@ -47,6 +55,12 @@ fn auto_bind_math() {
|
|||||||
a.powf(a) +
|
a.powf(a) +
|
||||||
a.round() +
|
a.round() +
|
||||||
a.sin() +
|
a.sin() +
|
||||||
|
a.abs() +
|
||||||
|
a.signum() +
|
||||||
|
a.floor() +
|
||||||
|
a.ceil() +
|
||||||
|
a.trunc() +
|
||||||
|
a.sqrt() +
|
||||||
(a % (b as f32))) as f64) +
|
(a % (b as f32))) as f64) +
|
||||||
(b + 2.0f64.powf(a as f64))
|
(b + 2.0f64.powf(a as f64))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user