Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

add_sat - Add two values and saturate the result.

Authors

TheKhronosGroup

Description

add_sat returns x+y and saturates result.

Name

       add_sat - Add two values and saturate the result.

       gentypeadd_sat(gentypex,gentypey);

Notes

        1. OpenCL Specification
           page 256, section 6.12.3 - Integer Functions

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

See Also

integerFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also