Skip to content

Commit 48fd96c

Browse files
committed
Refactor avx512f: zeroing primitives
1 parent de29bfa commit 48fd96c

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
@@ -15717,7 +15717,7 @@ pub unsafe fn _mm_maskz_cvttpd_epu32(k: __mmask8, a: __m128d) -> __m128i {
1571715717
#[cfg_attr(test, assert_instr(vxorps))]
1571815718
pub unsafe fn _mm512_setzero_pd() -> __m512d {
1571915719
// All-0 is a properly initialized __m512d
15720-
mem::zeroed()
15720+
const { mem::zeroed() }
1572115721
}
1572215722

1572315723
/// Returns vector of type `__m512` with all elements set to zero.
@@ -15729,7 +15729,7 @@ pub unsafe fn _mm512_setzero_pd() -> __m512d {
1572915729
#[cfg_attr(test, assert_instr(vxorps))]
1573015730
pub unsafe fn _mm512_setzero_ps() -> __m512 {
1573115731
// All-0 is a properly initialized __m512
15732-
mem::zeroed()
15732+
const { mem::zeroed() }
1573315733
}
1573415734

1573515735
/// Return vector of type `__m512` with all elements set to zero.
@@ -15741,7 +15741,7 @@ pub unsafe fn _mm512_setzero_ps() -> __m512 {
1574115741
#[cfg_attr(test, assert_instr(vxorps))]
1574215742
pub unsafe fn _mm512_setzero() -> __m512 {
1574315743
// All-0 is a properly initialized __m512
15744-
mem::zeroed()
15744+
const { mem::zeroed() }
1574515745
}
1574615746

1574715747
/// Returns vector of type `__m512i` with all elements set to zero.
@@ -15753,7 +15753,7 @@ pub unsafe fn _mm512_setzero() -> __m512 {
1575315753
#[cfg_attr(test, assert_instr(vxorps))]
1575415754
pub unsafe fn _mm512_setzero_si512() -> __m512i {
1575515755
// All-0 is a properly initialized __m512i
15756-
mem::zeroed()
15756+
const { mem::zeroed() }
1575715757
}
1575815758

1575915759
/// Return vector of type `__m512i` with all elements set to zero.
@@ -15765,7 +15765,7 @@ pub unsafe fn _mm512_setzero_si512() -> __m512i {
1576515765
#[cfg_attr(test, assert_instr(vxorps))]
1576615766
pub unsafe fn _mm512_setzero_epi32() -> __m512i {
1576715767
// All-0 is a properly initialized __m512i
15768-
mem::zeroed()
15768+
const { mem::zeroed() }
1576915769
}
1577015770

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

0 commit comments

Comments
 (0)