diff --git a/libclc/ptx/lib/SOURCES b/libclc/ptx/lib/SOURCES new file mode 100644 index 000000000000..ff5bff2cea54 --- /dev/null +++ b/libclc/ptx/lib/SOURCES @@ -0,0 +1 @@ +math/nextafter.cl diff --git a/libclc/ptx/lib/math/nextafter.cl b/libclc/ptx/lib/math/nextafter.cl new file mode 100644 index 000000000000..5b4521d21c26 --- /dev/null +++ b/libclc/ptx/lib/math/nextafter.cl @@ -0,0 +1,10 @@ +#include +#include "../lib/clcmacro.h" +#include + +_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