Skip to content

Commit 106bf19

Browse files
authored
Merge pull request #517 from MabezDev/extended-xtensa-soft-float
2 parents 5511f30 + caaf5a6 commit 106bf19

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub mod int;
4747
all(target_arch = "x86_64", target_os = "none"),
4848
all(target_arch = "x86_64", target_os = "uefi"),
4949
all(target_arch = "arm", target_os = "none"),
50+
all(target_arch = "xtensa", target_os = "none"),
5051
target_os = "xous",
5152
all(target_vendor = "fortanix", target_env = "sgx")
5253
))]

src/math.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,19 @@ no_mangle! {
8686
fn tanf(n: f32) -> f32;
8787
}
8888

89-
#[cfg(any(target_os = "xous", target_os = "uefi"))]
89+
#[cfg(any(
90+
target_os = "xous",
91+
target_os = "uefi",
92+
all(target_arch = "xtensa", target_os = "none"),
93+
))]
9094
no_mangle! {
9195
fn sqrtf(x: f32) -> f32;
9296
fn sqrt(x: f64) -> f64;
9397
}
9498

9599
#[cfg(any(
96100
all(target_vendor = "fortanix", target_env = "sgx"),
101+
all(target_arch = "xtensa", target_os = "none"),
97102
target_os = "xous",
98103
target_os = "uefi"
99104
))]

0 commit comments

Comments
 (0)