Skip to content

Commit a40f965

Browse files
committed
Move entirely to array-based SIMD
See MCP#621 This tries to make as few changes as possible -- it keeps the `new` functions taking all the parameters, for example.
1 parent 876b08c commit a40f965

File tree

22 files changed

+588
-712
lines changed

22 files changed

+588
-712
lines changed

crates/core_arch/src/aarch64/neon/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ use stdarch_test::assert_instr;
2323
types! {
2424
/// ARM-specific 64-bit wide vector of one packed `f64`.
2525
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
26-
pub struct float64x1_t(f64); // FIXME: check this!
26+
pub struct float64x1_t(1 x f64); // FIXME: check this!
2727
/// ARM-specific 128-bit wide vector of two packed `f64`.
2828
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
29-
pub struct float64x2_t(f64, f64);
29+
pub struct float64x2_t(2 x f64);
3030
}
3131

3232
/// ARM-specific type containing two `float64x1_t` vectors.

crates/core_arch/src/arm/dsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ use crate::mem::transmute;
2828
types! {
2929
/// ARM-specific 32-bit wide vector of two packed `i16`.
3030
#[unstable(feature = "stdarch_arm_dsp", issue = "117237")]
31-
pub struct int16x2_t(i16, i16);
31+
pub struct int16x2_t(2 x i16);
3232
/// ARM-specific 32-bit wide vector of two packed `u16`.
3333
#[unstable(feature = "stdarch_arm_dsp", issue = "117237")]
34-
pub struct uint16x2_t(u16, u16);
34+
pub struct uint16x2_t(2 x u16);
3535
}
3636

3737
extern "unadjusted" {

0 commit comments

Comments
 (0)