Skip to content

Commit caf5998

Browse files
authored
Merge pull request #673 from scottmcm/only-array-simd
Use array simd in `U64x2`
2 parents 404fe91 + f3882e4 commit caf5998

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,20 +482,20 @@ macro_rules! intrinsics {
482482
#[cfg(all(any(windows, target_os = "uefi"), target_pointer_width = "64"))]
483483
pub mod win64_128bit_abi_hack {
484484
#[repr(simd)]
485-
pub struct U64x2(u64, u64);
485+
pub struct U64x2([u64; 2]);
486486

487487
impl From<i128> for U64x2 {
488488
fn from(i: i128) -> U64x2 {
489489
use crate::int::DInt;
490490
let j = i as u128;
491-
U64x2(j.lo(), j.hi())
491+
U64x2([j.lo(), j.hi()])
492492
}
493493
}
494494

495495
impl From<u128> for U64x2 {
496496
fn from(i: u128) -> U64x2 {
497497
use crate::int::DInt;
498-
U64x2(i.lo(), i.hi())
498+
U64x2([i.lo(), i.hi()])
499499
}
500500
}
501501
}

0 commit comments

Comments
 (0)