* @brief Return the horizontal maximum of a single vector. */
| 640 | * @brief Return the horizontal maximum of a single vector. |
| 641 | */ |
| 642 | ASTCENC_SIMD_INLINE vint4 hmax(vint4 a) |
| 643 | { |
| 644 | int b = std::max(a.m[0], a.m[1]); |
| 645 | int c = std::max(a.m[2], a.m[3]); |
| 646 | return vint4(std::max(b, c)); |
| 647 | } |
| 648 | |
| 649 | /** |
| 650 | * @brief Store a vector to an aligned memory address. |