summaryrefslogtreecommitdiff
path: root/generic/lib/shared/clamp.cl
diff options
context:
space:
mode:
Diffstat (limited to 'generic/lib/shared/clamp.cl')
-rw-r--r--generic/lib/shared/clamp.cl11
1 files changed, 11 insertions, 0 deletions
diff --git a/generic/lib/shared/clamp.cl b/generic/lib/shared/clamp.cl
new file mode 100644
index 0000000..0e8d223
--- /dev/null
+++ b/generic/lib/shared/clamp.cl
@@ -0,0 +1,11 @@
+#include <clc/clc.h>
+
+#define BODY <clamp.inc>
+#include <clc/integer/gentype.inc>
+
+#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+#endif
+
+#define BODY <clamp.inc>
+#include <clc/math/gentype.inc>