* @brief Return a float rounded to the nearest integer value. */
| 775 | * @brief Return a float rounded to the nearest integer value. |
| 776 | */ |
| 777 | ASTCENC_SIMD_INLINE vfloat8 round(vfloat8 a) |
| 778 | { |
| 779 | constexpr int flags = _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC; |
| 780 | return vfloat8(_mm256_round_ps(a.m, flags)); |
| 781 | } |
| 782 | |
| 783 | /** |
| 784 | * @brief Return the horizontal minimum of a vector. |