Increase fp16 support to allow clspv to continue to be OpenCL compliant following the update of the OpenCL-CTS adding more testing on math functions and conversions with half. Math functions are implemented by upscaling to fp32 and using the fp32 implementation. It garantees the accuracy required for half-precision float-point by the CTS.
12 lines
308 B
C
12 lines
308 B
C
_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);
|
|
|
|
#ifdef cl_khr_fp64
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
|
_CLC_DEF _CLC_OVERLOAD double __clc_ldexp(double, int);
|
|
#endif
|
|
|
|
#ifdef cl_khr_fp16
|
|
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
|
|
_CLC_DEF _CLC_OVERLOAD half __clc_ldexp(half, int);
|
|
#endif
|