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

Function round

Source/astcenc_vecmathlib_avx2_8.h:777–781  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

775 * @brief Return a float rounded to the nearest integer value.
776 */
777ASTCENC_SIMD_INLINE vfloat8 round(vfloat8 a)
778{
779 constexpr int flags = _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC;
780 return vfloat8(_mm256_round_ps(a.m, flags));
781}
782
783/**
784 * @brief Return the horizontal minimum of a vector.

Callers

nothing calls this directly

Calls 1

vfloat8Class · 0.70

Tested by

no test coverage detected