MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / as_float

Function as_float

Sources/nCine/Base/Algorithms.cpp:268–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 static inline float as_float(const std::uint32_t x)
269 {
270 union {float f; uint32_t i;} u;
271 u.i = x;
272 return u.f;
273 }
274
275 float halfToFloat(std::uint16_t value)
276 {

Callers 1

halfToFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected