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

Function unit2

Source/astcenc_vecmathlib.h:328–332  ·  view source on GitHub ↗

* @brief Factory that returns a unit length 2 component vfloat4. */

Source from the content-addressed store, hash-verified

326 * @brief Factory that returns a unit length 2 component vfloat4.
327 */
328static ASTCENC_SIMD_INLINE vfloat4 unit2()
329{
330 float val = 0.707106769084930420f;
331 return vfloat4(val, val, 0.0f, 0.0f);
332}
333
334/**
335 * @brief Factory that returns a 3 component vfloat4.

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected