Merge pull request #268 from akash-fortanix/sgx-target

expose ceil, floor and trunc on sgx-target
master
Alex Crichton 2019-01-02 11:20:10 -06:00 committed by GitHub
commit 465ee353f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,16 @@ no_mangle! {
fn tanhf(n: f32) -> f32;
}
#[cfg(target_env = "sgx")]
no_mangle! {
fn ceil(x: f64) -> f64;
fn ceilf(x: f32) -> f32;
fn floor(x: f64) -> f64;
fn floorf(x: f32) -> f32;
fn trunc(x: f64) -> f64;
fn truncf(x: f32) -> f32;
}
// only for the thumb*-none-eabi* targets
#[cfg(all(target_arch = "arm", target_os = "none"))]
no_mangle! {