Results 1 to 2 of 2

Thread: isequal() for ints?

  1. #1
    Junior Member
    Join Date
    Dec 2009

    isequal() for ints?

    In the OpenCL spec it looks like 'isequal()' is only defined for half, double, and float. Why don't I have this operator for integer types? I would've expected it to be the opposite, as it is unusual to compare floating points for equality.

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Northern Europe

    Re: isequal() for ints?

    I believe:

    int4 comp, a, b;
    comp = a == b;

    will give you the equivalent.

    I think the isequals() exists because it returns an int type for float arguments.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean