[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / libclc / generic / lib / math / unary_builtin.inc
blob4e7ca5ba9b98e41c1ab04994a6f8eb385801fa47
1 #include "../clcmacro.h"
2 #include "utils.h"
4 #ifndef __CLC_BUILTIN
5 #define __CLC_BUILTIN __CLC_XCONCAT(__clc_, __CLC_FUNCTION)
6 #endif
8 _CLC_DEFINE_UNARY_BUILTIN(float, __CLC_FUNCTION, __CLC_BUILTIN, float)
10 #ifdef cl_khr_fp64
12 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
14 _CLC_DEFINE_UNARY_BUILTIN(double, __CLC_FUNCTION, __CLC_BUILTIN, double)
16 #endif
18 #ifdef cl_khr_fp16
20 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
22 _CLC_DEFINE_UNARY_BUILTIN(half, __CLC_FUNCTION, __CLC_BUILTIN, half)
24 #endif