MCPcopy Create free account
hub / github.com/MegEngine/MegCC / as_float

Function as_float

runtime/src/parse.c:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 return *(ccuint*)&x;
12}
13static float as_float(const ccuint x) {
14 return *(float*)&x;
15}
16
17//! From:
18//! https://stackoverflow.com/questions/1659440/32-bit-to-16-bit-floating-point-conversion

Callers 1

half_to_floatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected