* @brief Return lanes from @c b if @c cond is set, else @c a. */
| 562 | * @brief Return lanes from @c b if @c cond is set, else @c a. |
| 563 | */ |
| 564 | ASTCENC_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 |
no test coverage detected