v2: fix fmax implementation
use consistent checks for __CLC_FP_SIZE
add missing TODOs
fix whitespace in definitions.h
v3: undef ZERO in modf.inc
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
reviewer: Jeroen Ketema <j.ketema@xs4all.nl>
Reviewed-by: Aaron Watry <awatry@gmail.com>
Tested-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 332677
10 lines
316 B
C++
10 lines
316 B
C++
// TODO: Enable half precision when the sw routine is implemented
|
|
#if __CLC_FPSIZE > 16
|
|
_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;
|
|
}
|
|
#endif
|