Skip to content

Commit ece01fc

Browse files
matmul-int8: remove unnecessary casts in q8_0_q8_0
1 parent 3978014 commit ece01fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml-quants.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4852,10 +4852,10 @@ void ggml_vec_dot_q8_0_q8_0(int n, float * restrict s, size_t bs, const void * r
48524852
const block_q8_0 * restrict b_x1 = &vx1[i];
48534853
const block_q8_0 * restrict b_y1 = &vy1[i];
48544854

4855-
const int8x16_t x0_l = vld1q_s8((const int8_t*)b_x0->qs);
4856-
const int8x16_t x0_h = vld1q_s8((const int8_t*)b_x0->qs + 16);
4857-
const int8x16_t x1_l = vld1q_s8((const int8_t*)b_x1->qs);
4858-
const int8x16_t x1_h = vld1q_s8((const int8_t*)b_x1->qs + 16);
4855+
const int8x16_t x0_l = vld1q_s8(b_x0->qs);
4856+
const int8x16_t x0_h = vld1q_s8(b_x0->qs + 16);
4857+
const int8x16_t x1_l = vld1q_s8(b_x1->qs);
4858+
const int8x16_t x1_h = vld1q_s8(b_x1->qs + 16);
48594859

48604860
// load y
48614861
const int8x16_t y0_l = vld1q_s8(b_y0->qs);

0 commit comments

Comments
 (0)