Skip to content

Commit eba1908

Browse files
committed
remove unused __m512 load_1blksum_512(const float* BlksumPtr)
Signed-off-by: Liqun Fu <liqun.fu@microsoft.com>
1 parent 5901b52 commit eba1908

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

onnxruntime/core/mlas/lib/sqnbitgemm_kernel_avx512_int8_blklen32.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,6 @@ __m512 load_4blksum_512(const float* BlksumPtr)
2828
return _mm512_insertf32x4(_mm512_setzero_ps(), blksum4_4_ps, 0);
2929
}
3030

31-
// Function to load a single float value into the lowest element of a __m512 register
32-
static MLAS_FORCEINLINE
33-
__m512 load_1blksum_512(const float* BlksumPtr) {
34-
// Create a mask to set only the lowest element
35-
constexpr __mmask16 mask = 0x01; // Binary: 0000 0000 0000 0001
36-
37-
// Dereference the pointer to get the float value
38-
float value = *BlksumPtr;
39-
40-
// Use the mask to set the lowest element to the value
41-
__m512 result = _mm512_castsi512_ps(
42-
_mm512_mask_set1_epi32(_mm512_setzero_epi32(), mask, *reinterpret_cast<int*>(&value)));
43-
44-
return result;
45-
}
46-
4731
// Function to load a single float value into the lowest element of a __m256 register
4832
static MLAS_FORCEINLINE
4933
__m256 load_1blksum_256(const float* BlksumPtr) {

0 commit comments

Comments
 (0)