| #include <clc/internal/clc.h> |
| #include <clc/relational/relational.h> |
| |
| _CLC_DEFINE_ISFPCLASS(int, int, __clc_isnan, fcNan, float) |
| |
| #ifdef cl_khr_fp64 |
| |
| #pragma OPENCL EXTENSION cl_khr_fp64 : enable |
| |
| // The scalar version of __clc_isnan(double) returns an int, but the vector |
| // versions return a long. |
| _CLC_DEFINE_ISFPCLASS(int, long, __clc_isnan, fcNan, double) |
| |
| #endif |
| |
| #ifdef cl_khr_fp16 |
| |
| #pragma OPENCL EXTENSION cl_khr_fp16 : enable |
| |
| // The scalar version of __clc_isnan(half) returns an int, but the vector |
| // versions return a short. |
| _CLC_DEFINE_ISFPCLASS(int, short, __clc_isnan, fcNan, half) |
| |
| #endif |