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

Function float_to_int

Source/astcenc_vecmathlib_sse_4.h:942–945  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

940 * @brief Return a integer value for a float vector, using truncation.
941 */
942ASTCENC_SIMD_INLINE vint4 float_to_int(vfloat4 a)
943{
944 return vint4(_mm_cvttps_epi32(a.m));
945}
946
947/**
948 * @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