* @brief Return the dot product for the full 4 lanes, returning scalar. */
| 295 | * @brief Return the dot product for the full 4 lanes, returning scalar. |
| 296 | */ |
| 297 | ASTCENC_SIMD_INLINE float dot_s(vfloat4 a, vfloat4 b) |
| 298 | { |
| 299 | vfloat4 m = a * b; |
| 300 | return hadd_s(m); |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * @brief Return the dot product for the full 4 lanes, returning vector. |