* @brief Accumulate lane-wise sums for a vector, folded 4-wide. * * This is invariant with 4-wide implementations. */
| 866 | * This is invariant with 4-wide implementations. |
| 867 | */ |
| 868 | ASTCENC_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. |