* @brief Return a integer value as a float 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 second half of that flip. */
| 1075 | * convert them back again. This is the second half of that flip. |
| 1076 | */ |
| 1077 | ASTCENC_SIMD_INLINE vfloat4 int_as_float(vint4 a) |
| 1078 | { |
| 1079 | vfloat4 r; |
| 1080 | std::memcpy(r.m, a.m, 4 * sizeof(float)); |
| 1081 | return r; |
| 1082 | } |
| 1083 | |
| 1084 | /* |
| 1085 | * Table structure for a 16x 8-bit entry table. |
nothing calls this directly
no outgoing calls
no test coverage detected