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

Function fp32_to_bits

ggml-impl.h:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static 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
151static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) {
152 const uint32_t w = (uint32_t) h << 16;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected