Skip to content

Commit d9d3751

Browse files
committed
Ban non-array SIMD
1 parent f7b7aa3 commit d9d3751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloc/benches/slice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ reverse!(reverse_u32, u32, |x| x as u32);
336336
reverse!(reverse_u64, u64, |x| x as u64);
337337
reverse!(reverse_u128, u128, |x| x as u128);
338338
#[repr(simd)]
339-
struct F64x4(f64, f64, f64, f64);
339+
struct F64x4([f64; 4]);
340340
reverse!(reverse_simd_f64x4, F64x4, |x| {
341341
let x = x as f64;
342-
F64x4(x, x, x, x)
342+
F64x4([x, x, x, x])
343343
});
344344

345345
macro_rules! rotate {

0 commit comments

Comments
 (0)