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

Function round

Source/astcenc_vecmathlib_sve_8.h:740–743  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

738 * @brief Return a float rounded to the nearest integer value.
739 */
740ASTCENC_SIMD_INLINE vfloat8 round(vfloat8 a)
741{
742 return vfloat8(svrintn_f32_x(svptrue_b32(), a.m));
743}
744
745/**
746 * @brief Return the horizontal minimum of a vector.

Callers 2

TESTFunction · 0.50

Calls 1

vfloat8Class · 0.70

Tested by 1

TESTFunction · 0.40