Skip to content

Commit 83df563

Browse files
authored
Fix GCC warning about binary literal (abetlen#595)
0b10101010 -> 0xAA /* 0b10101010 */
1 parent a5c42c4 commit 83df563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ static void ggml_vec_dot_q4_1(const int n, float * restrict s, const void * rest
19621962
// Compute cross scales for the block
19631963
const __m256 scale_0 = _mm256_mul_ps( d0v, m1v );
19641964
const __m256 scale_1 = _mm256_mul_ps( m0v, d1v );
1965-
const __m256 cross_scales = _mm256_blend_ps( scale_0, scale_1, 0b10101010 );
1965+
const __m256 cross_scales = _mm256_blend_ps( scale_0, scale_1, 0xAA /* 0b10101010 */ );
19661966

19671967
// Load 16 bytes, and unpack 4 bit fields into bytes, making 32 bytes
19681968
__m256i bx = bytesFromNibbles( x[i].qs );

0 commit comments

Comments
 (0)