24 #ifndef __CL_PLATFORM_H
25 #define __CL_PLATFORM_H
27 #define CL_PLATFORM_MINI_CL 0x12345
34 #define MINICL_REGISTER(__kernel_func) static MiniCLKernelDesc __kernel_func##Desc((void*)__kernel_func, #__kernel_func);
39 #include <AvailabilityMacros.h>
49 #define CL_API_SUFFIX__VERSION_1_0 // AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
50 #define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
52 #define CL_API_SUFFIX__VERSION_1_0
53 #define CL_EXTENSION_WEAK_LINK
56 #if defined (_WIN32) && ! defined (__MINGW32__)
176 typedef uint16_t cl_ushort16[16]
__attribute__((aligned(32)));
194 typedef uint64_t cl_ulong16[16]
__attribute__((aligned(128)));
204 typedef double cl_double16[16]
__attribute__((aligned(128)));
210 #define CL_CHAR_BIT 8
211 #define CL_SCHAR_MAX 127
212 #define CL_SCHAR_MIN (-127-1)
213 #define CL_CHAR_MAX CL_SCHAR_MAX
214 #define CL_CHAR_MIN CL_SCHAR_MIN
215 #define CL_UCHAR_MAX 255
216 #define CL_SHRT_MAX 32767
217 #define CL_SHRT_MIN (-32767-1)
218 #define CL_USHRT_MAX 65535
219 #define CL_INT_MAX 2147483647
220 #define CL_INT_MIN (-2147483647-1)
221 #define CL_UINT_MAX 0xffffffffU
222 #define CL_LONG_MAX ((cl_long) 0x7FFFFFFFFFFFFFFFLL)
223 #define CL_LONG_MIN ((cl_long) -0x7FFFFFFFFFFFFFFFLL - 1LL)
224 #define CL_ULONG_MAX ((cl_ulong) 0xFFFFFFFFFFFFFFFFULL)
227 #define CL_FLT_MANT_DIG 24
228 #define CL_FLT_MAX_10_EXP +38
229 #define CL_FLT_MAX_EXP +128
230 #define CL_FLT_MIN_10_EXP -37
231 #define CL_FLT_MIN_EXP -125
232 #define CL_FLT_RADIX 2
233 #define CL_FLT_MAX 0x1.fffffep127f
234 #define CL_FLT_MIN 0x1.0p-126f
235 #define CL_FLT_EPSILON 0x1.0p-23f
237 #define CL_DBL_DIG 15
238 #define CL_DBL_MANT_DIG 53
239 #define CL_DBL_MAX_10_EXP +308
240 #define CL_DBL_MAX_EXP +1024
241 #define CL_DBL_MIN_10_EXP -307
242 #define CL_DBL_MIN_EXP -1021
243 #define CL_DBL_RADIX 2
244 #define CL_DBL_MAX 0x1.fffffffffffffp1023
245 #define CL_DBL_MIN 0x1.0p-1022
246 #define CL_DBL_EPSILON 0x1.0p-52
254 #endif // __CL_PLATFORM_H
MiniCLKernelDesc(void *pCode, const char *pName)