Skip to content

Commit 09a2d43

Browse files
expose ceil, floor and trunc on sgx-target
1 parent 10f4f35 commit 09a2d43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/math.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ no_mangle! {
6666
fn tanhf(n: f32) -> f32;
6767
}
6868

69+
#[cfg(target_env = "sgx")]
70+
no_mangle! {
71+
fn ceil(x: f64) -> f64;
72+
fn ceilf(x: f32) -> f32;
73+
fn floor(x: f64) -> f64;
74+
fn floorf(x: f32) -> f32;
75+
fn trunc(x: f64) -> f64;
76+
fn truncf(x: f32) -> f32;
77+
}
78+
6979
// only for the thumb*-none-eabi* targets
7080
#[cfg(all(target_arch = "arm", target_os = "none"))]
7181
no_mangle! {

0 commit comments

Comments
 (0)