| 140 | } |
| 141 | |
| 142 | static inline uint32_t fp32_to_bits(float f) { |
| 143 | union { |
| 144 | float as_value; |
| 145 | uint32_t as_bits; |
| 146 | } fp32; |
| 147 | fp32.as_value = f; |
| 148 | return fp32.as_bits; |
| 149 | } |
| 150 | |
| 151 | static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) { |
| 152 | const uint32_t w = (uint32_t) h << 16; |
no outgoing calls
no test coverage detected