From: Diego Devesa Date: Mon, 23 Dec 2024 19:25:52 +0000 (+0100) Subject: ggml : fix const usage in SSE path (llama/10962) X-Git-Tag: upstream/1.7.4~17 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=3387415bad06a0eba103911631ead9e5451957d7;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ggml : fix const usage in SSE path (llama/10962) --- diff --git a/ggml/src/ggml-cpu/ggml-cpu.c b/ggml/src/ggml-cpu/ggml-cpu.c index 67e67a08..18d19447 100644 --- a/ggml/src/ggml-cpu/ggml-cpu.c +++ b/ggml/src/ggml-cpu/ggml-cpu.c @@ -986,7 +986,7 @@ inline static void __wasm_f16x4_store(ggml_fp16_t * p, v128_t x) { #define GGML_F16_STEP 32 #define GGML_F16_EPR 4 -static inline __m128 __sse_f16x4_load(ggml_fp16_t *x) { +static inline __m128 __sse_f16x4_load(const ggml_fp16_t * x) { float tmp[4]; tmp[0] = GGML_FP16_TO_FP32(x[0]); @@ -997,7 +997,7 @@ static inline __m128 __sse_f16x4_load(ggml_fp16_t *x) { return _mm_loadu_ps(tmp); } -static inline void __sse_f16x4_store(ggml_fp16_t *x, __m128 y) { +static inline void __sse_f16x4_store(ggml_fp16_t * x, __m128 y) { float arr[4]; _mm_storeu_ps(arr, y);