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

Function select

Source/astcenc_vecmathlib_neon_4.h:638–641  ·  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

636 * @brief Return lanes from @c b if @c cond is set, else @c a.
637 */
638ASTCENC_SIMD_INLINE vint4 select(vint4 a, vint4 b, vmask4 cond)
639{
640 return vint4(vbslq_s32(cond.m, b.m, a.m));
641}
642
643// ============================================================================
644// vfloat4 operators and functions

Callers

nothing calls this directly

Calls 2

vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected