Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 1 | #ifndef cl_clang_storage_class_specifiers |
| 2 | #error Implementation requires cl_clang_storage_class_specifiers extension! |
| 3 | #endif |
| 4 | |
| 5 | #pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable |
| 6 | |
| 7 | #ifdef cl_khr_fp64 |
| 8 | #pragma OPENCL EXTENSION cl_khr_fp64 : enable |
| 9 | #endif |
| 10 | |
| 11 | /* Function Attributes */ |
| 12 | #include <clc/clcfunc.h> |
| 13 | |
| 14 | /* Pattern Macro Definitions */ |
| 15 | #include <clc/clcmacro.h> |
| 16 | |
| 17 | /* 6.1 Supported Data Types */ |
| 18 | #include <clc/clctypes.h> |
| 19 | |
Peter Collingbourne | 3a78a47 | 2012-05-28 20:42:54 +0000 | [diff] [blame] | 20 | /* 6.2.3 Explicit Conversions */ |
| 21 | #include <clc/convert.h> |
| 22 | |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 23 | /* 6.2.4.2 Reinterpreting Types Using as_type() and as_typen() */ |
| 24 | #include <clc/as_type.h> |
| 25 | |
| 26 | /* 6.11.1 Work-Item Functions */ |
| 27 | #include <clc/workitem/get_global_size.h> |
| 28 | #include <clc/workitem/get_global_id.h> |
| 29 | #include <clc/workitem/get_local_size.h> |
| 30 | #include <clc/workitem/get_local_id.h> |
| 31 | #include <clc/workitem/get_num_groups.h> |
| 32 | #include <clc/workitem/get_group_id.h> |
| 33 | |
| 34 | /* 6.11.2 Math Functions */ |
| 35 | #include <clc/math/cos.h> |
Peter Collingbourne | d3c242a | 2012-05-29 00:42:29 +0000 | [diff] [blame] | 36 | #include <clc/math/exp.h> |
| 37 | #include <clc/math/exp2.h> |
Peter Collingbourne | 6f154f1 | 2012-05-28 22:22:13 +0000 | [diff] [blame] | 38 | #include <clc/math/fabs.h> |
Peter Collingbourne | e1d91f7 | 2012-08-21 10:48:21 +0000 | [diff] [blame] | 39 | #include <clc/math/floor.h> |
Peter Collingbourne | de7227e | 2012-05-29 13:35:28 +0000 | [diff] [blame] | 40 | #include <clc/math/fma.h> |
| 41 | #include <clc/math/hypot.h> |
Peter Collingbourne | d3c242a | 2012-05-29 00:42:29 +0000 | [diff] [blame] | 42 | #include <clc/math/log.h> |
| 43 | #include <clc/math/log2.h> |
Peter Collingbourne | b7fdecd | 2012-05-29 00:42:38 +0000 | [diff] [blame] | 44 | #include <clc/math/mad.h> |
Peter Collingbourne | 64fe1c5 | 2012-05-29 17:42:56 +0000 | [diff] [blame] | 45 | #include <clc/math/pow.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 46 | #include <clc/math/sin.h> |
| 47 | #include <clc/math/sqrt.h> |
| 48 | #include <clc/math/native_cos.h> |
| 49 | #include <clc/math/native_divide.h> |
Peter Collingbourne | d3c242a | 2012-05-29 00:42:29 +0000 | [diff] [blame] | 50 | #include <clc/math/native_exp.h> |
| 51 | #include <clc/math/native_exp2.h> |
| 52 | #include <clc/math/native_log.h> |
| 53 | #include <clc/math/native_log2.h> |
Peter Collingbourne | df1fd9d | 2012-10-08 03:39:05 +0000 | [diff] [blame] | 54 | #include <clc/math/native_powr.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 55 | #include <clc/math/native_sin.h> |
| 56 | #include <clc/math/native_sqrt.h> |
Peter Collingbourne | 354686b | 2012-08-21 10:48:35 +0000 | [diff] [blame] | 57 | #include <clc/math/rsqrt.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 58 | |
| 59 | /* 6.11.3 Integer Functions */ |
| 60 | #include <clc/integer/abs.h> |
| 61 | #include <clc/integer/abs_diff.h> |
| 62 | #include <clc/integer/add_sat.h> |
Peter Collingbourne | 1e373f0 | 2012-08-05 22:25:12 +0000 | [diff] [blame] | 63 | #include <clc/integer/sub_sat.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 64 | |
| 65 | /* 6.11.5 Geometric Functions */ |
| 66 | #include <clc/geometric/cross.h> |
Peter Collingbourne | 0144669 | 2012-05-29 13:35:45 +0000 | [diff] [blame] | 67 | #include <clc/geometric/dot.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 68 | #include <clc/geometric/length.h> |
| 69 | #include <clc/geometric/normalize.h> |
| 70 | |
| 71 | /* 6.11.6 Relational Functions */ |
Peter Collingbourne | bf3fd44 | 2012-10-08 03:39:21 +0000 | [diff] [blame] | 72 | #include <clc/relational/any.h> |
Peter Collingbourne | d5395fb | 2012-01-08 22:09:58 +0000 | [diff] [blame] | 73 | #include <clc/relational/select.h> |
| 74 | |
| 75 | /* 6.11.8 Synchronization Functions */ |
| 76 | #include <clc/synchronization/cl_mem_fence_flags.h> |
| 77 | #include <clc/synchronization/barrier.h> |
| 78 | |
| 79 | #pragma OPENCL EXTENSION all : disable |