mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 19:04:35 +00:00
Fix GCC warning about binary literal (#595)
0b10101010 -> 0xAA /* 0b10101010 */
This commit is contained in:
parent
a5c42c4b13
commit
83df5639eb
2
ggml.c
2
ggml.c
@ -1962,7 +1962,7 @@ static void ggml_vec_dot_q4_1(const int n, float * restrict s, const void * rest
|
|||||||
// Compute cross scales for the block
|
// Compute cross scales for the block
|
||||||
const __m256 scale_0 = _mm256_mul_ps( d0v, m1v );
|
const __m256 scale_0 = _mm256_mul_ps( d0v, m1v );
|
||||||
const __m256 scale_1 = _mm256_mul_ps( m0v, d1v );
|
const __m256 scale_1 = _mm256_mul_ps( m0v, d1v );
|
||||||
const __m256 cross_scales = _mm256_blend_ps( scale_0, scale_1, 0b10101010 );
|
const __m256 cross_scales = _mm256_blend_ps( scale_0, scale_1, 0xAA /* 0b10101010 */ );
|
||||||
|
|
||||||
// Load 16 bytes, and unpack 4 bit fields into bytes, making 32 bytes
|
// Load 16 bytes, and unpack 4 bit fields into bytes, making 32 bytes
|
||||||
__m256i bx = bytesFromNibbles( x[i].qs );
|
__m256i bx = bytesFromNibbles( x[i].qs );
|
||||||
|
Loading…
Reference in New Issue
Block a user