2013-10-11 03:08:51 +08:00
|
|
|
#include <clc/clc.h>
|
2014-06-24 17:36:32 +08:00
|
|
|
#include "../lib/clcmacro.h"
|
2017-10-09 03:33:58 +08:00
|
|
|
#include <math/clc_nextafter.h>
|
2013-10-11 03:08:51 +08:00
|
|
|
|
|
|
|
_CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)
|
2016-09-09 00:37:56 +08:00
|
|
|
|
|
|
|
#ifdef cl_khr_fp64
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
|
|
|
_CLC_DEFINE_BINARY_BUILTIN(double, nextafter, __clc_nextafter, double, double)
|
|
|
|
#endif
|
2018-05-18 06:55:30 +08:00
|
|
|
|
|
|
|
#ifdef cl_khr_fp16
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
|
|
|
|
_CLC_DEFINE_BINARY_BUILTIN(half, nextafter, __clc_nextafter, half, half)
|
|
|
|
#endif
|