horizontally add 4x4 floats
| 254 | #elif defined(__SSSE3__) |
| 255 | // horizontally add 4x4 floats |
| 256 | static inline float hsum_float_4x4(const __m128 a, const __m128 b, const __m128 c, const __m128 d) { |
| 257 | __m128 res_0 =_mm_hadd_ps(a, b); |
| 258 | __m128 res_1 =_mm_hadd_ps(c, d); |
| 259 | __m128 res =_mm_hadd_ps(res_0, res_1); |
| 260 | res =_mm_hadd_ps(res, res); |
| 261 | res =_mm_hadd_ps(res, res); |
| 262 | |
| 263 | return _mm_cvtss_f32(res); |
| 264 | } |
| 265 | #endif // __AVX__ || __AVX2__ || __AVX512F__ |
| 266 | #endif // defined(__AVX__) || defined(__AVX2__) || defined(__AVX512F__) || defined(__SSSE3__) |
| 267 |
no outgoing calls
no test coverage detected