* @brief Return a integer value for a float vector, using truncation. */
| 969 | * @brief Return a integer value for a float vector, using truncation. |
| 970 | */ |
| 971 | ASTCENC_SIMD_INLINE vint8 float_to_int(vfloat8 a) |
| 972 | { |
| 973 | return vint8(_mm256_cvttps_epi32(a.m)); |
| 974 | } |
| 975 | |
| 976 | /** |
| 977 | * @brief Return a integer value for a float vector, using round-to-nearest. |