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

Function float_to_int

Source/astcenc_vecmathlib_none_4.h:983–989  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

981 * @brief Return a integer value for a float vector, using truncation.
982 */
983ASTCENC_SIMD_INLINE vint4 float_to_int(vfloat4 a)
984{
985 return vint4(static_cast<int>(a.m[0]),
986 static_cast<int>(a.m[1]),
987 static_cast<int>(a.m[2]),
988 static_cast<int>(a.m[3]));
989}
990
991/**f
992 * @brief Return a integer value for a float vector, using round-to-nearest.

Callers

nothing calls this directly

Calls 1

vint4Class · 0.70

Tested by

no test coverage detected