Merge pull request #517 from MabezDev/extended-xtensa-soft-float

This commit is contained in:
Amanieu d'Antras 2023-02-23 18:25:43 +01:00 committed by GitHub
commit 1f24a253c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -47,6 +47,7 @@ pub mod int;
all(target_arch = "x86_64", target_os = "none"),
all(target_arch = "x86_64", target_os = "uefi"),
all(target_arch = "arm", target_os = "none"),
all(target_arch = "xtensa", target_os = "none"),
target_os = "xous",
all(target_vendor = "fortanix", target_env = "sgx")
))]

View file

@ -86,7 +86,11 @@ no_mangle! {
fn tanf(n: f32) -> f32;
}
#[cfg(any(target_os = "xous", target_os = "uefi"))]
#[cfg(any(
target_os = "xous",
target_os = "uefi",
all(target_arch = "xtensa", target_os = "none"),
))]
no_mangle! {
fn sqrtf(x: f32) -> f32;
fn sqrt(x: f64) -> f64;
@ -94,6 +98,7 @@ no_mangle! {
#[cfg(any(
all(target_vendor = "fortanix", target_env = "sgx"),
all(target_arch = "xtensa", target_os = "none"),
target_os = "xous",
target_os = "uefi"
))]