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

Method swz

Source/astcenc_vecmathlib_sse_4.h:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 * @brief Return a swizzled float 2.
147 */
148 template <int l0, int l1> ASTCENC_SIMD_INLINE vfloat4 swz() const
149 {
150 vfloat4 result(_mm_shuffle_ps(m, m, l0 | l1 << 2));
151 result.set_lane<2>(0.0f);
152 result.set_lane<3>(0.0f);
153 return result;
154 }
155
156 /**
157 * @brief Return a swizzled float 3.

Callers

nothing calls this directly

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected