Skip to content

Commit fe84efe

Browse files
Update libm, add rint and rintf
1 parent 54d00e1 commit fe84efe

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/math.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ no_mangle! {
4646
fn fmaxf(x: f32, y: f32) -> f32;
4747
fn round(x: f64) -> f64;
4848
fn roundf(x: f32) -> f32;
49+
fn rint(x: f64) -> f64;
50+
fn rintf(x: f32) -> f32;
4951
fn sin(x: f64) -> f64;
5052
fn pow(x: f64, y: f64) -> f64;
5153
fn powf(x: f32, y: f32) -> f32;
@@ -65,20 +67,6 @@ no_mangle! {
6567
fn ldexpf(f: f32, n: i32) -> f32;
6668
fn tgamma(x: f64) -> f64;
6769
fn tgammaf(x: f32) -> f32;
68-
}
69-
70-
#[cfg(any(
71-
all(
72-
target_family = "wasm",
73-
target_os = "unknown",
74-
not(target_env = "wasi")
75-
),
76-
target_os = "xous",
77-
all(target_arch = "x86_64", target_os = "uefi"),
78-
all(target_arch = "xtensa", target_os = "none"),
79-
all(target_vendor = "fortanix", target_env = "sgx")
80-
))]
81-
no_mangle! {
8270
fn atan(x: f64) -> f64;
8371
fn atan2(x: f64, y: f64) -> f64;
8472
fn cosh(x: f64) -> f64;

0 commit comments

Comments
 (0)