Skip to content

Commit c2b19c8

Browse files
taronaeoAleksei Nikiforov
andcommitted
ggml: add documentation for code change
Signed-off-by: Aaron Teo <[email protected]> Co-authored-by: Aleksei Nikiforov <[email protected]>
1 parent 71a764e commit c2b19c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-cpu/simd-mappings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,16 @@ static inline __vector float __lzs_f16cx4_load(const ggml_fp16_t * x) {
851851
tmp[i] = GGML_FP16_TO_FP32(x[i]);
852852
}
853853

854+
// TODO: change to const pointer instead (see #12846)
855+
// this is only a workaround to the compile error but its unreadable
854856
return vec_xl(0, &(tmp[0]));
855857
}
856858

857859
static inline void __lzs_f16cx4_store(ggml_fp16_t * x, __vector float y) {
858860
float arr[4];
859861

862+
// TODO: change to const pointer instead (see #12846)
863+
// this is only a workaround to the compile error but its unreadable
860864
vec_xst(y, 0, &(arr[0]));
861865

862866
for (int i = 0; i < 4; i++) {

0 commit comments

Comments
 (0)