summaryrefslogtreecommitdiffstats
path: root/include/cmath
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-03-05 17:09:51 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-03-05 17:09:51 +0000
commit0d6dcb5569bd8f31228370de5f04ccb7cf0ac896 (patch)
tree7aa0ddf805b5527478b22401a8da7b37fb96a4cf /include/cmath
parentebd6c2b81dbb9105cfc3aa3b1b88fadf39793818 (diff)
downloadexternal_libcxx-0d6dcb5569bd8f31228370de5f04ccb7cf0ac896.tar.gz
external_libcxx-0d6dcb5569bd8f31228370de5f04ccb7cf0ac896.tar.bz2
external_libcxx-0d6dcb5569bd8f31228370de5f04ccb7cf0ac896.zip
Remove definition of std::fmaf from libc++. Fixes bug #18910. This function should come from the C standard library. As a drive-by fix, update the tests to remove a warning from -Wabsolute-value
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@202990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/cmath')
-rw-r--r--include/cmath6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/cmath b/include/cmath
index def49c0bf..964c6729c 100644
--- a/include/cmath
+++ b/include/cmath
@@ -1208,11 +1208,7 @@ fdim(_A1 __x, _A2 __y) _NOEXCEPT
// fma
-inline _LIBCPP_INLINE_VISIBILITY float fmaf(float __x, float __y, float __z) _NOEXCEPT {return (float)((double)__x*__y + __z);}
-#ifndef FP_FAST_FMAF
-#define FP_FAST_FMAF
-#endif
-
+using ::fmaf;
using ::fma;
inline _LIBCPP_INLINE_VISIBILITY float fma(float __x, float __y, float __z) _NOEXCEPT {return fmaf(__x, __y, __z);}