Files
clang-p2996/libclc/generic/include/clc/math/fmax.h
Tom Stellard 1ded220cc0 Implement fmax using __builtin_fmax
This ensures correct handling of NaNi.

This has been tested with piglit, OpenCV, and the ocl conformance tests.

llvm-svn: 233713
2015-03-31 16:59:23 +00:00

9 lines
149 B
C

#define __CLC_BODY <clc/math/binary_decl.inc>
#define __CLC_FUNCTION fmax
#include <clc/math/gentype.inc>
#undef __CLC_BODY
#undef __CLC_FUNCTION