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

mad - Approximates a * b + c.

Authors

TheKhronosGroup

Description

mad approximates a * b + c. Whether or how the product of a * b is rounded and how supernormal or
       subnormal intermediate products are handled is not defined.  mad is intended to be used where speed is
       preferred over accuracy.

Name

       mad - Approximates a * b + c.

       gentypemad(gentypea,gentypeb,gentypec);

Notes

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

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

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also