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

fabs - Compute absolute value of a floating-point number.

Authors

TheKhronosGroup

Description

fabs computes the absolute value of a floating-point number.

Name

       fabs - Compute absolute value of a floating-point number.

       gentypefabs(gentype);

Notes

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

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

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also