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.
7 lines
221 B
C++
7 lines
221 B
C++
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE remquo(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_ADDRESS_SPACE __CLC_INTN *q) {
|
|
__CLC_INTN local_q;
|
|
__CLC_GENTYPE ret = __clc_remquo(x, y, &local_q);
|
|
*q = local_q;
|
|
return ret;
|
|
}
|