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

Function hadd_s

Source/astcenc_vecmathlib_none_4.h:907–911  ·  view source on GitHub ↗

* @brief Return the horizontal sum of a vector. */

Source from the content-addressed store, hash-verified

905 * @brief Return the horizontal sum of a vector.
906 */
907ASTCENC_SIMD_INLINE float hadd_s(vfloat4 a)
908{
909 // Use halving add, gives invariance with SIMD versions
910 return (a.m[0] + a.m[2]) + (a.m[1] + a.m[3]);
911}
912
913/**
914 * @brief Return the sqrt of the lanes in the vector.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected