MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / float_as_int

Function float_as_int

external/astc-encoder/Source/astcenc_mathlib.h:360–365  ·  view source on GitHub ↗

* @brief SP float bit-interpreted as an integer. * * @param v The value to bitcast. * * @return The converted value. */

Source from the content-addressed store, hash-verified

358 * @return The converted value.
359 */
360static inline int float_as_int(float v)
361{
362 union { int a; float b; } u;
363 u.b = v;
364 return u.a;
365}
366
367/**
368 * @brief Integer bit-interpreted as an SP float.

Callers 5

change_signFunction · 0.70
log2Function · 0.70
clzFunction · 0.70
unorm16_to_sf16Function · 0.70
frexpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected