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

Function round

Source/astcenc_vecmathlib_rvv_n.h:773–777  ·  view source on GitHub ↗

* @brief Return a float rounded to the nearest integer value. */

Source from the content-addressed store, hash-verified

771 * @brief Return a float rounded to the nearest integer value.
772 */
773ASTCENC_SIMD_INLINE vfloat round(vfloat a)
774{
775 vint32_t r = __riscv_vfcvt_x(a.m, 0, vfloat::vl());
776 return vfloat(__riscv_vfcvt_f(r, 0, vfloat::vl()));
777}
778
779/**
780 * @brief Return the horizontal minimum of a vector.

Callers

nothing calls this directly

Calls 1

vfloatClass · 0.85

Tested by

no test coverage detected