Skip to content

Commit ea75b4f

Browse files
committed
Extend the intrinsics exported for Xtensa no_std
1 parent 5511f30 commit ea75b4f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/math.rs

+7-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
))]
@@ -110,6 +115,7 @@ no_mangle! {
110115
#[cfg(any(
111116
all(target_arch = "arm", target_os = "none"),
112117
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none"),
118+
all(target_arch = "xtensa", target_os = "none"),
113119
all(target_arch = "x86_64", target_os = "none")
114120
))]
115121
no_mangle! {

0 commit comments

Comments
 (0)