* @brief Return a float rounded to the nearest integer value. */
| 771 | * @brief Return a float rounded to the nearest integer value. |
| 772 | */ |
| 773 | ASTCENC_SIMD_INLINE vfloat round(vfloat a) |
| 774 | { |
| 775 | vint32_t r = __riscv_vfcvt_x(a.m, 0, vfloat::vl()); |
| 776 | return vfloat(__riscv_vfcvt_f(r, 0, vfloat::vl())); |
| 777 | } |
| 778 | |
| 779 | /** |
| 780 | * @brief Return the horizontal minimum of a vector. |