Use array simd in U64x2

This commit is contained in:
Scott McMurray 2024-08-22 00:43:02 -07:00
parent ce9a67e7d6
commit 40d2a60c22

View file

@ -482,20 +482,20 @@ macro_rules! intrinsics {
#[cfg(all(any(windows, target_os = "uefi"), target_pointer_width = "64"))]
pub mod win64_128bit_abi_hack {
#[repr(simd)]
pub struct U64x2(u64, u64);
pub struct U64x2([u64; 2]);
impl From<i128> for U64x2 {
fn from(i: i128) -> U64x2 {
use crate::int::DInt;
let j = i as u128;
U64x2(j.lo(), j.hi())
U64x2([j.lo(), j.hi()])
}
}
impl From<u128> for U64x2 {
fn from(i: u128) -> U64x2 {
use crate::int::DInt;
U64x2(i.lo(), i.hi())
U64x2([i.lo(), i.hi()])
}
}
}