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

Function float_to_int

Source/astcenc_vecmathlib_rvv_n.h:949–952  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

947 * @brief Return a integer value for a float vector, using truncation.
948 */
949ASTCENC_SIMD_INLINE vint float_to_int(vfloat a)
950{
951 return vint(__riscv_vfcvt_rtz_x(a.m, vfloat::vl()));
952}
953
954/**
955 * @brief Return a integer value for a float vector, using round-to-nearest.

Callers

nothing calls this directly

Calls 1

vintClass · 0.85

Tested by

no test coverage detected