summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-03-31 16:59:21 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-03-31 16:59:21 +0000
commit310da7bfd266ef2cab8f545b81e25bbc8e187a52 (patch)
tree4f20913b94e0faedcfef0216752fe2a0fed995ab /libclc/generic/include/clc
parente782178e9c647fd923aedeed9f666078ce575fac (diff)
downloadbcm5719-llvm-310da7bfd266ef2cab8f545b81e25bbc8e187a52.tar.gz
bcm5719-llvm-310da7bfd266ef2cab8f545b81e25bbc8e187a52.zip
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
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/math/fmin.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libclc/generic/include/clc/math/fmin.h b/libclc/generic/include/clc/math/fmin.h
index 5588ba93a8b..d45f572e08b 100644
--- a/libclc/generic/include/clc/math/fmin.h
+++ b/libclc/generic/include/clc/math/fmin.h
@@ -1,8 +1,5 @@
-#undef fmin
-#define fmin __clc_fmin
-
#define __CLC_BODY <clc/math/binary_decl.inc>
-#define __CLC_FUNCTION __clc_fmin
+#define __CLC_FUNCTION fmin
#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud