
libclc was defining and undefing GENTYPE and several other macros with common names in its header files. This was preventing applications from defining macros with identical names as command line arguments to the compiler, because the definitions in the header files were masking the macros defined as compiler arguements. Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 185838
10 lines
276 B
C++
10 lines
276 B
C++
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b) {
|
|
return (a > b ? a : b);
|
|
}
|
|
|
|
#ifndef __CLC_SCALAR
|
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b) {
|
|
return (a > (__CLC_GENTYPE)b ? a : (__CLC_GENTYPE)b);
|
|
}
|
|
#endif
|