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

Function float_to_int

Source/astcenc_vecmathlib_neon_4.h:873–876  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

871 * @brief Return a integer value for a float vector, using truncation.
872 */
873ASTCENC_SIMD_INLINE vint4 float_to_int(vfloat4 a)
874{
875 return vint4(vcvtq_s32_f32(a.m));
876}
877
878/**
879 * @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