We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10f4f35 + 09a2d43 commit 465ee35Copy full SHA for 465ee35
src/math.rs
@@ -66,6 +66,16 @@ no_mangle! {
66
fn tanhf(n: f32) -> f32;
67
}
68
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
+
79
// only for the thumb*-none-eabi* targets
80
#[cfg(all(target_arch = "arm", target_os = "none"))]
81
no_mangle! {
0 commit comments