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

Function haccumulate

Source/astcenc_vecmathlib_avx2_8.h:868–875  ·  view source on GitHub ↗

* @brief Accumulate lane-wise sums for a vector, folded 4-wide. * * This is invariant with 4-wide implementations. */

Source from the content-addressed store, hash-verified

866 * This is invariant with 4-wide implementations.
867 */
868ASTCENC_SIMD_INLINE void haccumulate(vfloat4& accum, vfloat8 a)
869{
870 vfloat4 lo(_mm256_extractf128_ps(a.m, 0));
871 haccumulate(accum, lo);
872
873 vfloat4 hi(_mm256_extractf128_ps(a.m, 1));
874 haccumulate(accum, hi);
875}
876
877/**
878 * @brief Accumulate lane-wise sums for a vector.

Callers

nothing calls this directly

Calls 1

selectFunction · 0.70

Tested by

no test coverage detected