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

remainder - Floating point remainder function.

Authors

TheKhronosGroup

Description

       Computes the value r such that r = x - n*y, where n is the integer nearest the exact value of x/y. If
       there are two integers closest to x/y, n shall be the even one. If r is zero, it is given the same sign
       as x.

Name

       remainder - Floating point remainder function.

       gentyperemainder(gentypex,gentypey);

Notes

        1. OpenCL Specification
           page 244, section 6.12.2 - Math Functions

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

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also