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

Function int_to_float

Source/astcenc_vecmathlib_none_4.h:1006–1012  ·  view source on GitHub ↗

* @brief Return a float value for a integer vector. */

Source from the content-addressed store, hash-verified

1004 * @brief Return a float value for a integer vector.
1005 */
1006ASTCENC_SIMD_INLINE vfloat4 int_to_float(vint4 a)
1007{
1008 return vfloat4(static_cast<float>(a.m[0]),
1009 static_cast<float>(a.m[1]),
1010 static_cast<float>(a.m[2]),
1011 static_cast<float>(a.m[3]));
1012}
1013
1014/**
1015 * @brief Return a float16 value for a float vector, using round-to-nearest.

Callers

nothing calls this directly

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected