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

signbit - Test for sign bit.

Authors

TheKhronosGroup

Description

       The built-in function signbit tests for sign bit. The scalar version of the function returns a 1 if the
       sign bit in the float is set else returns 0. The vector version of the function returns the following for
       each component in floatn: -1 (i.e. all bits set) if the sign bit in the float is set else returns 0.

Name

       signbit - Test for sign bit.

       intsignbit(float);intnsignbit(floatn);intsignbit(double);longnsignbit(doublen);intsignbit (half)      // if half extension enabled

       shortnsignbit (halfn)      // if half extension enabled

Notes

        1. OpenCL Specification
           page 264, section 6.12.6 - Relational Functions

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

See Also

relationalFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also