ptx: Use __clc_nextafter to implement nextafter
using clang builtin results in external library call Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 315191
This commit is contained in:
parent
1de1444d62
commit
80bb52ae75
1
libclc/ptx/lib/SOURCES
Normal file
1
libclc/ptx/lib/SOURCES
Normal file
|
@ -0,0 +1 @@
|
|||
math/nextafter.cl
|
10
libclc/ptx/lib/math/nextafter.cl
Normal file
10
libclc/ptx/lib/math/nextafter.cl
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <clc/clc.h>
|
||||
#include "../lib/clcmacro.h"
|
||||
#include <math/clc_nextafter.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
|
Loading…
Reference in New Issue
Block a user