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

modf - Decompose a floating-point number.

Authors

TheKhronosGroup

Description

       Decompose a floating-point number. The modf function breaks the argument x into integral and fractional
       parts, each of which has the same sign as the argument. It stores the integral part in the object pointed
       to by iptr.

Name

       modf - Decompose a floating-point number.

       gentypemodf(gentypex,__globalgentype*iptr);gentypemodf(gentypex,__localgentype*iptr);gentypemodf(gentypex,__privategentype*iptr);

Notes

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

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

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also