* @brief Return the horizontal sum of a vector. */
| 905 | * @brief Return the horizontal sum of a vector. |
| 906 | */ |
| 907 | ASTCENC_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. |
nothing calls this directly
no outgoing calls
no test coverage detected