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

Function round

Source/astcenc_vecmathlib_none_4.h:875–882  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

873 * @brief Return a float rounded to the nearest integer value.
874 */
875ASTCENC_SIMD_INLINE vfloat4 round(vfloat4 a)
876{
877 assert(std::fegetround() == FE_TONEAREST);
878 return vfloat4(std::nearbyint(a.m[0]),
879 std::nearbyint(a.m[1]),
880 std::nearbyint(a.m[2]),
881 std::nearbyint(a.m[3]));
882}
883
884/**
885 * @brief Return the horizontal minimum of a vector.

Callers

nothing calls this directly

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected