23 #if defined(__APPLE__) || defined(__MACOSX)
24 #include <OpenCL/cl.h>
38 typedef enum DataType {
49 FLOAT4_VECLEN =
sizeof(cl_float4) /
sizeof(cl_float)
59 dtypeSize(DataType type);
65 fl4RowWidth(
size_t width,
size_t typeSize);
68 isDoubleBasedType(DataType dtype)
70 return (dtype == TYPE_DOUBLE || dtype == TYPE_COMPLEX_DOUBLE);
74 isComplexType(DataType dtype)
76 return (dtype == TYPE_COMPLEX_FLOAT || dtype == TYPE_COMPLEX_DOUBLE);