1#include "../clcmacro.h" 2#include "utils.h" 3 4#ifndef __CLC_BUILTIN 5#define __CLC_BUILTIN __CLC_XCONCAT(__clc_, __CLC_FUNCTION) 6#endif 7 8_CLC_DEFINE_UNARY_BUILTIN(float, __CLC_FUNCTION, __CLC_BUILTIN, float) 9 10#ifdef cl_khr_fp64 11 12#pragma OPENCL EXTENSION cl_khr_fp64 : enable 13 14_CLC_DEFINE_UNARY_BUILTIN(double, __CLC_FUNCTION, __CLC_BUILTIN, double) 15 16#endif 17 18#ifdef cl_khr_fp16 19 20#pragma OPENCL EXTENSION cl_khr_fp16 : enable 21 22_CLC_DEFINE_UNARY_BUILTIN(half, __CLC_FUNCTION, __CLC_BUILTIN, half) 23 24#endif 25