Skip to content

Commit ba57ca4

Browse files
authored
Merge pull request #1 from rust-lang/master
updates from main
2 parents 3d34329 + 0c4f836 commit ba57ca4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-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;

testcrate/tests/mem.rs

+6
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ fn memmove_backward_aligned() {
230230
}
231231
}
232232

233+
// PowerPC tests are failing: https://github.com/rust-lang/rust/issues/99853
234+
#[cfg(not(target_arch = "powerpc64"))]
233235
#[test]
234236
fn memset_backward_misaligned_nonaligned_start() {
235237
let mut arr = gen_arr::<32>();
@@ -242,6 +244,8 @@ fn memset_backward_misaligned_nonaligned_start() {
242244
}
243245
}
244246

247+
// PowerPC tests are failing: https://github.com/rust-lang/rust/issues/99853
248+
#[cfg(not(target_arch = "powerpc64"))]
245249
#[test]
246250
fn memset_backward_misaligned_aligned_start() {
247251
let mut arr = gen_arr::<32>();
@@ -254,6 +258,8 @@ fn memset_backward_misaligned_aligned_start() {
254258
}
255259
}
256260

261+
// PowerPC tests are failing: https://github.com/rust-lang/rust/issues/99853
262+
#[cfg(not(target_arch = "powerpc64"))]
257263
#[test]
258264
fn memset_backward_aligned() {
259265
let mut arr = gen_arr::<32>();

0 commit comments

Comments
 (0)