aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranzz1 <anzz1@live.com>2023-03-29 16:20:07 +0300
committerGitHub <noreply@github.com>2023-03-29 13:20:07 +0000
commit83df5639eb182ed7c122382907691d8baa3c32df (patch)
tree67621522eea50c8647530b3674478e409b849fa9
parenta5c42c4b13b3be9e58fe8f9adbb6ee60417674a6 (diff)
Fix GCC warning about binary literal (#595)
0b10101010 -> 0xAA /* 0b10101010 */
-rw-r--r--ggml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml.c b/ggml.c
index efe9316..c049f00 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 );