* @brief Return the absolute value of the float vector. */
| 862 | * @brief Return the absolute value of the float vector. |
| 863 | */ |
| 864 | ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a) |
| 865 | { |
| 866 | return vfloat4(std::abs(a.m[0]), |
| 867 | std::abs(a.m[1]), |
| 868 | std::abs(a.m[2]), |
| 869 | std::abs(a.m[3])); |
| 870 | } |
| 871 | |
| 872 | /** |
| 873 | * @brief Return a float rounded to the nearest integer value. |