MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / fp32_from_bits

Function fp32_from_bits

ggml-impl.h:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131// ref: https://github.com/Maratyszcza/FP16
132
133static 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
142static inline uint32_t fp32_to_bits(float f) {
143 union {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected