MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / int_as_float

Function int_as_float

Source/astcenc_vecmathlib_sse_4.h:1046–1049  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

1044 * convert them back again. This is the second half of that flip.
1045 */
1046ASTCENC_SIMD_INLINE vfloat4 int_as_float(vint4 v)
1047{
1048 return vfloat4(_mm_castsi128_ps(v.m));
1049}
1050
1051/*
1052 * Table structure for a 16x 8-bit entry table.

Callers

nothing calls this directly

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected