From 1a6a3c4fe8ea50b6084546a4abd40e9f0e609b28 Mon Sep 17 00:00:00 2001 From: tnut Date: Fri, 26 Feb 2010 23:22:14 +0100 Subject: libofa dans test --- test/libofa/gcc-4.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/libofa/gcc-4.patch (limited to 'test/libofa/gcc-4.patch') diff --git a/test/libofa/gcc-4.patch b/test/libofa/gcc-4.patch new file mode 100644 index 000000000..18b3b7b43 --- /dev/null +++ b/test/libofa/gcc-4.patch @@ -0,0 +1,39 @@ +--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300 ++++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300 +@@ -20,11 +20,20 @@ + namespace TNT + { + /** ++ @returns the absolute value of a real (no-complex) scalar. ++*/ ++template ++Real abs(const Real &a) ++{ ++ return (a > 0 ? a : -a); ++} ++/** + @returns hypotenuse of real (non-complex) scalars a and b by + avoiding underflow/overflow + using (a * sqrt( 1 + (b/a) * (b/a))), rather than + sqrt(a*a + b*b). + */ ++ + template + Real hypot(const Real &a, const Real &b) + { +@@ -56,15 +65,6 @@ + } + */ + +-/** +- @returns the absolute value of a real (no-complex) scalar. +-*/ +-template +-Real abs(const Real &a) +-{ +- return (a > 0 ? a : -a); +-} +- + } + #endif + /* MATH_UTILS_H */ -- cgit v1.2.3-70-g09d2