fwknop: init script improvements
[feed/packages.git] / libs / boost / patches / 004-math.patch
1 From 5f19fd7dc6c4dd37fb0409f08a0b7dbb887dd516 Mon Sep 17 00:00:00 2001
2 From: Rosen Penev <rosenp@gmail.com>
3 Date: Thu, 19 Dec 2019 17:46:46 -0800
4 Subject: [PATCH] roots: Fix fma_workaround
5
6 fma takes three parameters, not one.
7
8 Signed-off-by: Rosen Penev <rosenp@gmail.com>
9 ---
10 include/boost/math/tools/roots.hpp | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13 diff --git a/boost/math/tools/roots.hpp b/boost/math/tools/roots.hpp
14 index 8b3ab7eb9..5d7936bb2 100644
15 --- a/boost/math/tools/roots.hpp
16 +++ b/boost/math/tools/roots.hpp
17 @@ -861,10 +861,10 @@ Complex complex_newton(F g, Complex guess, int max_iterations = std::numeric_lim
18 namespace detail
19 {
20 #if defined(BOOST_GNU_STDLIB) && !defined(_GLIBCXX_USE_C99_MATH_TR1)
21 -float fma_workaround(float f) { return ::fmaf(f); }
22 -double fma_workaround(double f) { return ::fma(f); }
23 +inline float fma_workaround(float x, float y, float z) { return ::fmaf(x, y, z); }
24 +inline double fma_workaround(double x, double y, double z) { return ::fma(x, y, z); }
25 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
26 -long double fma_workaround(long double f) { return ::fmal(f); }
27 +inline long double fma_workaround(long double x, long double y, long double z) { return ::fmal(x, y, z); }
28 #endif
29 #endif
30 template<class T>