Skip to content

Commit d8453f2

Browse files
folkertdevscottmcm
authored andcommitted
use from_array to create simd values for arm/aarch64
1 parent afa88a6 commit d8453f2

File tree

3 files changed

+84
-84
lines changed

3 files changed

+84
-84
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ pub fn vmovq_n_f64(value: f64) -> float64x2_t {
425425
#[cfg_attr(test, assert_instr(nop))]
426426
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
427427
pub fn vget_high_f64(a: float64x2_t) -> float64x1_t {
428-
unsafe { float64x1_t([simd_extract!(a, 1)]) }
428+
unsafe { float64x1_t::from_array([simd_extract!(a, 1)]) }
429429
}
430430

431431
/// Duplicate vector element to vector or scalar
@@ -443,7 +443,7 @@ pub fn vget_high_p64(a: poly64x2_t) -> poly64x1_t {
443443
#[cfg_attr(test, assert_instr(nop))]
444444
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
445445
pub fn vget_low_f64(a: float64x2_t) -> float64x1_t {
446-
unsafe { float64x1_t([simd_extract!(a, 0)]) }
446+
unsafe { float64x1_t::from_array([simd_extract!(a, 0)]) }
447447
}
448448

449449
/// Duplicate vector element to vector or scalar

0 commit comments

Comments
 (0)