logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

select - For each component of a vector type, result[i] = if MSB of c[i] is set ? b[i] : a[i]. For scalar

Authors

TheKhronosGroup

Description

       For each component of a vector type, result[i] = if MSB of c[i] is set ?  b[i] : a[i].

       For scalar type, result = c ?  b : a.

       igentype and ugentype must have the same number of elements and bits as gentype.

Name

       select - For each component of a vector type, result[i] = if MSB of c[i] is set ? b[i] : a[i]. For scalar
       type, result = c ? b : a.

       gentypeselect(gentypea,gentypeb,igentypec);gentypeselect(gentypea,gentypeb,ugentypec);halfnselect (halfna, halfnb, shortnc)      // if
       half extension enabled

       halfnselect (halfna, halfnb, ushortnc)      // if
       half extension enabled

Notes

        1. OpenCL Specification
           page 264, section 6.12.6 - Relational Functions

The Khronos Group                                  11/18/2024                                       SELECT(3clc)

See Also

relationalFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also