| 131 | // ref: https://github.com/Maratyszcza/FP16 |
| 132 | |
| 133 | static inline float fp32_from_bits(uint32_t w) { |
| 134 | union { |
| 135 | uint32_t as_bits; |
| 136 | float as_value; |
| 137 | } fp32; |
| 138 | fp32.as_bits = w; |
| 139 | return fp32.as_value; |
| 140 | } |
| 141 | |
| 142 | static inline uint32_t fp32_to_bits(float f) { |
| 143 | union { |
no outgoing calls
no test coverage detected