Skip to content

Commit 5d6e20d

Browse files
committed
Add xtensa to list of soft math targets.
1 parent fefbbff commit 5d6e20d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/math.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ macro_rules! no_mangle {
2020
target_os = "unknown",
2121
not(target_env = "wasi")
2222
),
23-
all(target_vendor = "fortanix", target_env = "sgx")
23+
all(target_vendor = "fortanix", target_env = "sgx"),
24+
all(target_arch = "xtensa", target_os = "none")
2425
))]
2526
no_mangle! {
2627
fn acos(x: f64) -> f64;
@@ -79,7 +80,10 @@ no_mangle! {
7980
fn ldexpf(f: f32, n: i32) -> f32;
8081
}
8182

82-
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
83+
#[cfg(any(
84+
all(target_vendor = "fortanix", target_env = "sgx"),
85+
all(target_arch = "xtensa", target_os = "none")
86+
))]
8387
no_mangle! {
8488
fn ceil(x: f64) -> f64;
8589
fn ceilf(x: f32) -> f32;

0 commit comments

Comments
 (0)