Skip to content

Commit

Permalink
Auto merge of rust-lang#129403 - scottmcm:only-array-simd, r=compiler…
Browse files Browse the repository at this point in the history
…-errors

Ban non-array SIMD

Nearing the end of rust-lang/compiler-team#621 !

Currently blocked on ~~rust-lang/compiler-builtins#673 ~~rust-lang/compiler-builtins#674 ~~rust-lang#129400 ~~rust-lang#129481 for windows.
  • Loading branch information
bors committed Sep 10, 2024
2 parents 22c4e8e + d9d3751 commit 95de48b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alloc/benches/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ reverse!(reverse_u32, u32, |x| x as u32);
reverse!(reverse_u64, u64, |x| x as u64);
reverse!(reverse_u128, u128, |x| x as u128);
#[repr(simd)]
struct F64x4(f64, f64, f64, f64);
struct F64x4([f64; 4]);
reverse!(reverse_simd_f64x4, F64x4, |x| {
let x = x as f64;
F64x4(x, x, x, x)
F64x4([x, x, x, x])
});

macro_rules! rotate {
Expand Down

0 comments on commit 95de48b

Please sign in to comment.