Skip to content

Commit

Permalink
Use all of src/math for UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush1325 committed Jul 28, 2022
1 parent 3872a7c commit 4236fbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ no_mangle! {
not(target_env = "wasi")
),
target_os = "xous",
all(target_arch = "x86_64", target_os = "uefi"),
all(target_arch = "xtensa", target_os = "none"),
all(target_vendor = "fortanix", target_env = "sgx")
))]
Expand All @@ -95,15 +96,16 @@ no_mangle! {
fn tanf(n: f32) -> f32;
}

#[cfg(target_os = "xous")]
#[cfg(target_os = "xous", target_os = "uefi")]
no_mangle! {
fn sqrtf(x: f32) -> f32;
fn sqrt(x: f64) -> f64;
}

#[cfg(any(
all(target_vendor = "fortanix", target_env = "sgx"),
target_os = "xous"
target_os = "xous",
target_os = "uefi"
))]
no_mangle! {
fn ceil(x: f64) -> f64;
Expand Down

0 comments on commit 4236fbd

Please sign in to comment.