MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / round

Function round

external/astc-encoder/Source/astcenc_vecmathlib_sve_8.h:736–739  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 3

TESTFunction · 0.50
write_floating_secondsFunction · 0.50

Calls 1

vfloat8Class · 0.70

Tested by 1

TESTFunction · 0.40