* @brief Return a float value as an integer bit pattern (i.e. no conversion). * * It is a common trick to convert floats into integer bit patterns, perform * some bit hackery based on knowledge they are IEEE 754 layout, and then * convert them back again. This is the first half of that flip. */
| 946 | * convert them back again. This is the first half of that flip. |
| 947 | */ |
| 948 | ASTCENC_SIMD_INLINE vint4 float_as_int(vfloat4 a) |
| 949 | { |
| 950 | return vint4(vreinterpretq_s32_f32(a.m)); |
| 951 | } |
| 952 | |
| 953 | /** |
| 954 | * @brief Return a integer value as a float bit pattern (i.e. no conversion). |