MCPcopy Create free account
hub / github.com/axmolengine/axmol / float_to_sf16

Function float_to_sf16

3rdparty/astcenc/astcenc_mathlib_softfloat.cpp:404–409  ·  view source on GitHub ↗

convert from native-float to soft-float */

Source from the content-addressed store, hash-verified

402
403/* convert from native-float to soft-float */
404uint16_t float_to_sf16(float p)
405{
406 if32 i;
407 i.f = p;
408 return sf32_to_sf16(i.u, SF_NEARESTEVEN);
409}
410
411#endif

Callers 2

float_to_float16Function · 0.85
float_to_float16Function · 0.85

Calls 1

sf32_to_sf16Function · 0.85

Tested by

no test coverage detected