Skip to content

Commit f3882e4

Browse files
committed
Use array simd in U64x2
1 parent 404fe91 commit f3882e4

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)