Skip to content

Commit 529015d

Browse files
committed
fixup! Part2: add wrapper
1 parent dae975f commit 529015d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/vector/ifma/field.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ use backend::serial::u64::field::FieldElement51;
1616

1717
/// A wrapper around `vpmadd52luq` that works on `u64x4`.
1818
#[inline(always)]
19-
fn madd52lo(z: u64x4, x: u64x4, y: u64x4) -> u64x4 {
19+
unsafe fn madd52lo(z: u64x4, x: u64x4, y: u64x4) -> u64x4 {
2020
use core::arch::x86_64::_mm256_madd52lo_epu64;
2121
_mm256_madd52lo_epu64(z.into_bits(), x.into_bits(), y.into_bits()).into_bits()
2222
}
2323

2424
/// A wrapper around `vpmadd52huq` that works on `u64x4`.
2525
#[inline(always)]
26-
fn madd52hi(z: u64x4, x: u64x4, y: u64x4) -> u64x4 {
26+
unsafe fn madd52hi(z: u64x4, x: u64x4, y: u64x4) -> u64x4 {
2727
use core::arch::x86_64::_mm256_madd52hi_epu64;
2828
_mm256_madd52hi_epu64(z.into_bits(), x.into_bits(), y.into_bits()).into_bits()
2929
}

0 commit comments

Comments
 (0)