diff --git a/ggml.c b/ggml.c index 4861f24..115e619 100644 --- a/ggml.c +++ b/ggml.c @@ -75,6 +75,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) { #include +// FP16 <-> FP32 +// ref: https://github.com/Maratyszcza/FP16 + static inline float fp32_from_bits(uint32_t w) { union { uint32_t as_bits;