* @brief Return the dot product for the full 4 lanes, returning vector. */
| 304 | * @brief Return the dot product for the full 4 lanes, returning vector. |
| 305 | */ |
| 306 | ASTCENC_SIMD_INLINE vfloat4 dot(vfloat4 a, vfloat4 b) |
| 307 | { |
| 308 | vfloat4 m = a * b; |
| 309 | return vfloat4(hadd_s(m)); |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * @brief Return the dot product for the bottom 3 lanes, returning scalar. |