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

Function select

Source/astcenc_vecmathlib_avx2_8.h:564–568  ·  view source on GitHub ↗

* @brief Return lanes from @c b if @c cond is set, else @c a. */

Source from the content-addressed store, hash-verified

562 * @brief Return lanes from @c b if @c cond is set, else @c a.
563 */
564ASTCENC_SIMD_INLINE vint8 select(vint8 a, vint8 b, vmask8 cond)
565{
566 __m256i condi = _mm256_castps_si256(cond.m);
567 return vint8(_mm256_blendv_epi8(a.m, b.m, condi));
568}
569
570// ============================================================================
571// vfloat8 operators and functions

Callers 2

haccumulateFunction · 0.70
printFunction · 0.70

Calls 2

vint8Class · 0.70
vfloat8Class · 0.70

Tested by

no test coverage detected