* @brief Return the absolute value of the float vector. */
| 754 | * @brief Return the absolute value of the float vector. |
| 755 | */ |
| 756 | ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a) |
| 757 | { |
| 758 | float32x4_t zero = vdupq_n_f32(0.0f); |
| 759 | float32x4_t inv = vsubq_f32(zero, a.m); |
| 760 | return vfloat4(vmaxq_f32(a.m, inv)); |
| 761 | } |
| 762 | |
| 763 | /** |
| 764 | * @brief Return a float rounded to the nearest integer value. |