diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-09-08 16:37:56 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-09-08 16:37:56 +0000 |
| commit | fbfd828d2afbdc48fc769cdc1e5b13aeb94b2298 (patch) | |
| tree | 3d183da23f26870458c367a1f7e2cc4278d1d25c /libclc/amdgpu/lib | |
| parent | 073472a2bf1f09f07b22a8746dfd2dcf7768c4f0 (diff) | |
| download | bcm5719-llvm-fbfd828d2afbdc48fc769cdc1e5b13aeb94b2298.tar.gz bcm5719-llvm-fbfd828d2afbdc48fc769cdc1e5b13aeb94b2298.zip | |
Replace nextafter implementation
This one passes conformance.
llvm-svn: 280961
Diffstat (limited to 'libclc/amdgpu/lib')
| -rw-r--r-- | libclc/amdgpu/lib/math/nextafter.cl | 5 |
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 |

