* @brief Return the absolute value of the float vector. */
| 806 | * @brief Return the absolute value of the float vector. |
| 807 | */ |
| 808 | ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a) |
| 809 | { |
| 810 | return vfloat4(_mm_max_ps(_mm_sub_ps(_mm_setzero_ps(), a.m), a.m)); |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * @brief Return a float rounded to the nearest integer value. |