MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / float_to_sf16

Function float_to_sf16

Source/astcenc_mathlib_softfloat.cpp:352–356  ·  view source on GitHub ↗

convert from native-float to soft-float */

Source from the content-addressed store, hash-verified

350
351/* convert from native-float to soft-float */
352uint16_t float_to_sf16(float p)
353{
354 unsigned int ip = astc::float_as_uint(p);
355 return sf32_to_sf16(ip, SF_NEARESTEVEN);
356}
357
358#endif

Callers 2

float_to_float16Function · 0.85
float_to_float16Function · 0.85

Calls 2

float_as_uintFunction · 0.85
sf32_to_sf16Function · 0.85

Tested by

no test coverage detected