* @brief Return the absolute value of the float vector. */
| 766 | * @brief Return the absolute value of the float vector. |
| 767 | */ |
| 768 | ASTCENC_SIMD_INLINE vfloat8 abs(vfloat8 a) |
| 769 | { |
| 770 | __m256 msk = _mm256_castsi256_ps(_mm256_set1_epi32(0x7fffffff)); |
| 771 | return vfloat8(_mm256_and_ps(a.m, msk)); |
| 772 | } |
| 773 | |
| 774 | /** |
| 775 | * @brief Return a float rounded to the nearest integer value. |