Skip to content

Commit 3ea862f

Browse files
committed
Refactor avx512f: zeroing primitives
1 parent c8fc6f2 commit 3ea862f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/core_arch/src/x86/avx512f.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15657,7 +15657,7 @@ pub unsafe fn _mm_maskz_cvttpd_epu32(k: __mmask8, a: __m128d) -> __m128i {
1565715657
#[cfg_attr(test, assert_instr(vxorps))]
1565815658
pub unsafe fn _mm512_setzero_pd() -> __m512d {
1565915659
// All-0 is a properly initialized __m512d
15660-
mem::zeroed()
15660+
const { mem::zeroed() }
1566115661
}
1566215662

1566315663
/// Returns vector of type `__m512` with all elements set to zero.
@@ -15669,7 +15669,7 @@ pub unsafe fn _mm512_setzero_pd() -> __m512d {
1566915669
#[cfg_attr(test, assert_instr(vxorps))]
1567015670
pub unsafe fn _mm512_setzero_ps() -> __m512 {
1567115671
// All-0 is a properly initialized __m512
15672-
mem::zeroed()
15672+
const { mem::zeroed() }
1567315673
}
1567415674

1567515675
/// Return vector of type `__m512` with all elements set to zero.
@@ -15681,7 +15681,7 @@ pub unsafe fn _mm512_setzero_ps() -> __m512 {
1568115681
#[cfg_attr(test, assert_instr(vxorps))]
1568215682
pub unsafe fn _mm512_setzero() -> __m512 {
1568315683
// All-0 is a properly initialized __m512
15684-
mem::zeroed()
15684+
const { mem::zeroed() }
1568515685
}
1568615686

1568715687
/// Returns vector of type `__m512i` with all elements set to zero.
@@ -15693,7 +15693,7 @@ pub unsafe fn _mm512_setzero() -> __m512 {
1569315693
#[cfg_attr(test, assert_instr(vxorps))]
1569415694
pub unsafe fn _mm512_setzero_si512() -> __m512i {
1569515695
// All-0 is a properly initialized __m512i
15696-
mem::zeroed()
15696+
const { mem::zeroed() }
1569715697
}
1569815698

1569915699
/// Return vector of type `__m512i` with all elements set to zero.
@@ -15705,7 +15705,7 @@ pub unsafe fn _mm512_setzero_si512() -> __m512i {
1570515705
#[cfg_attr(test, assert_instr(vxorps))]
1570615706
pub unsafe fn _mm512_setzero_epi32() -> __m512i {
1570715707
// All-0 is a properly initialized __m512i
15708-
mem::zeroed()
15708+
const { mem::zeroed() }
1570915709
}
1571015710

1571115711
/// Sets packed 32-bit integers in `dst` with the supplied values in reverse

0 commit comments

Comments
 (0)