* @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. */
| 975 | * convert them back again. This is the first half of that flip. |
| 976 | */ |
| 977 | ASTCENC_SIMD_INLINE vint float_as_int(vfloat a) |
| 978 | { |
| 979 | return vint(__riscv_vreinterpret_i32m1(a.m)); |
| 980 | } |
| 981 | |
| 982 | /** |
| 983 | * @brief Return a integer value as a float bit pattern (i.e. no conversion). |