Skip to content

Commit 0c4f836

Browse files
authored
Merge pull request #480 from Ayush1325/uefi-sqrt
2 parents 3cd73f9 + 81b22d4 commit 0c4f836

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/math.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ no_mangle! {
7272
not(target_env = "wasi")
7373
),
7474
target_os = "xous",
75+
all(target_arch = "x86_64", target_os = "uefi"),
7576
all(target_arch = "xtensa", target_os = "none"),
7677
all(target_vendor = "fortanix", target_env = "sgx")
7778
))]
@@ -95,15 +96,16 @@ no_mangle! {
9596
fn tanf(n: f32) -> f32;
9697
}
9798

98-
#[cfg(target_os = "xous")]
99+
#[cfg(any(target_os = "xous", target_os = "uefi"))]
99100
no_mangle! {
100101
fn sqrtf(x: f32) -> f32;
101102
fn sqrt(x: f64) -> f64;
102103
}
103104

104105
#[cfg(any(
105106
all(target_vendor = "fortanix", target_env = "sgx"),
106-
target_os = "xous"
107+
target_os = "xous",
108+
target_os = "uefi"
107109
))]
108110
no_mangle! {
109111
fn ceil(x: f64) -> f64;

0 commit comments

Comments
 (0)