Skip to content

Commit 32d6ee6

Browse files
authored
ggml : fix const usage in SSE path (#10962)
1 parent 14b699e commit 32d6ee6

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
@@ -986,7 +986,7 @@ inline static void __wasm_f16x4_store(ggml_fp16_t * p, v128_t x) {
986986
#define GGML_F16_STEP 32
987987
#define GGML_F16_EPR 4
988988

989-
static inline __m128 __sse_f16x4_load(ggml_fp16_t *x) {
989+
static inline __m128 __sse_f16x4_load(const ggml_fp16_t * x) {
990990
float tmp[4];
991991

992992
tmp[0] = GGML_FP16_TO_FP32(x[0]);
@@ -997,7 +997,7 @@ static inline __m128 __sse_f16x4_load(ggml_fp16_t *x) {
997997
return _mm_loadu_ps(tmp);
998998
}
999999

1000-
static inline void __sse_f16x4_store(ggml_fp16_t *x, __m128 y) {
1000+
static inline void __sse_f16x4_store(ggml_fp16_t * x, __m128 y) {
10011001
float arr[4];
10021002

10031003
_mm_storeu_ps(arr, y);

0 commit comments

Comments
 (0)