summaryrefslogtreecommitdiffstats
path: root/libclc/amdgpu/lib/math
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/amdgpu/lib/math')
-rw-r--r--libclc/amdgpu/lib/math/nextafter.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/math/nextafter.cl b/libclc/amdgpu/lib/math/nextafter.cl
index 4611c81ae91..6aee0a0c065 100644
--- a/libclc/amdgpu/lib/math/nextafter.cl
+++ b/libclc/amdgpu/lib/math/nextafter.cl
@@ -2,3 +2,8 @@
#include "../lib/clcmacro.h"
_CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)
+
+#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+_CLC_DEFINE_BINARY_BUILTIN(double, nextafter, __clc_nextafter, double, double)
+#endif
OpenPOWER on IntegriCloud