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

sin,_sincos,_sinh,_sinpi,_half_sin,_native_sin - Sine functions.

Authors

TheKhronosGroup

Description

sin computes the sine.

       sincos computes sine and cosine of x. The computed sine is the return value and computed cosine is
       returned in cosval.

       sinh computes the hyperbolic sine.

       sinpi computes sin (pi*x).

       half_sin computes sine.  x must be in the range -216... +216.

       native_sin computes sine over an implementation-defined range. The maximum error is
       implementation-defined.

Name

       sin,_sincos,_sinh,_sinpi,_half_sin,_native_sin - Sine functions.

       gentypesin(gentype);gentypesincos(gentypex,__globalgentype*cosval);gentypesincos(gentypex,__localgentype*cosval);gentypesincos(gentypex,__privategentype*cosval);gentypesinh(gentype);gentypesinpi(gentypex);gentypehalf_sin(gentypex);gentypenative_sin(gentypex);

Notes

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

The Khronos Group                                  11/18/2024                         SIN,SINCOS,SINH,S(3clc)

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also