View Full Version : isequal() for ints?
12-21-2009, 06:38 AM
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.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.