Skip to content

Commit 7413dab

Browse files
committed
ggml-cpu: fix compiler types
Signed-off-by: Aaron Teo <[email protected]>
1 parent e12e9fe commit 7413dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,8 +3145,8 @@ void ggml_cpu_fp32_to_fp16(const float * x, ggml_fp16_t * y, int64_t n) {
31453145
for (; i + 7 < n; i += 8) {
31463146
float32x4_t v_xh = vec_xl(0, (const float *)(x + i + 0));
31473147
float32x4_t v_xl = vec_xl(0, (const float *)(x + i + 4));
3148-
__vector short int v_xd = vec_round_from_fp32(v_xh, v_xl, 0);
3149-
__vector short int v_xfp16 = vec_convert_to_fp16(v_xd, 0);
3148+
__vector short unsigned int v_xd = vec_round_from_fp32(v_xh, v_xl, 0);
3149+
__vector short unsigned int v_xfp16 = vec_convert_to_fp16(v_xd, 0);
31503150
vec_xst(v_xfp16, 0, (ggml_fp16_t *)(y + i));
31513151
}
31523152
#endif

0 commit comments

Comments
 (0)