Files
clang-p2996/libclc/generic/include/clc/math/fmin.h
Tom Stellard 310da7bfd2 Implement fmin using __builtin_fmin
This ensures correct handling of NaN.

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

llvm-svn: 233712
2015-03-31 16:59:21 +00:00

9 lines
149 B
C

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