From 83df5639eb182ed7c122382907691d8baa3c32df Mon Sep 17 00:00:00 2001 From: anzz1 Date: Wed, 29 Mar 2023 16:20:07 +0300 Subject: [PATCH] Fix GCC warning about binary literal (#595) 0b10101010 -> 0xAA /* 0b10101010 */ --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index efe9316bb..c049f00a9 100644 --- a/ggml.c +++ b/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 const __m256 scale_0 = _mm256_mul_ps( d0v, m1v ); 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 __m256i bx = bytesFromNibbles( x[i].qs );