Skip to content

Commit 2b4892e

Browse files
committed
ggml-cpu: chore: remove todo comments about inline asm
Signed-off-by: Aaron Teo <[email protected]>
1 parent 70ff4e6 commit 2b4892e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ggml/src/ggml-impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,12 @@ GGML_API void ggml_aligned_free(void * ptr, size_t size);
426426
#define GGML_FP16_TO_FP32(x) GGML_COMPUTE_FP16_TO_FP32(x)
427427
#define GGML_FP32_TO_FP16(x) GGML_COMPUTE_FP32_TO_FP16(x)
428428

429-
// TODO: Determine if inline assembly is faster
430429
static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) {
431430
uint16x8_t v_h = vec_splats(h);
432431
uint16x8_t nnpa_dlf16 = vec_convert_from_fp16(v_h, 0);
433432
return vec_extend_to_fp32_hi(nnpa_dlf16, 0)[0];
434433
}
435434

436-
// TODO: Determine if inline assembly is faster
437435
static inline ggml_fp16_t ggml_compute_fp32_to_fp16(float f) {
438436
float32x4_t v_f = vec_splats(f);
439437
float32x4_t v_zero = vec_splats(0.0f);

0 commit comments

Comments
 (0)