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

Function float_to_int

Source/astcenc_vecmathlib_avx2_8.h:971–974  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

969 * @brief Return a integer value for a float vector, using truncation.
970 */
971ASTCENC_SIMD_INLINE vint8 float_to_int(vfloat8 a)
972{
973 return vint8(_mm256_cvttps_epi32(a.m));
974}
975
976/**
977 * @brief Return a integer value for a float vector, using round-to-nearest.

Callers

nothing calls this directly

Calls 1

vint8Class · 0.70

Tested by

no test coverage detected