diff options
author | geantbrun <bg@nutyx.(none)> | 2010-02-27 09:28:29 +0100 |
---|---|---|
committer | geantbrun <bg@nutyx.(none)> | 2010-02-27 09:28:29 +0100 |
commit | 9337e0c193432552a1883ea9b4965d3fc5f04211 (patch) | |
tree | 2ab5e66f6e4e8f142c8f7811f15a3ef572198a8c /test/libofa/gcc-4.patch | |
parent | 0dd7a66ed38fbcba601c9a0543129d968e9edafc (diff) | |
parent | e6b1d989a4f3e0f9fa6dc77439da81f2bc863189 (diff) | |
download | nutyx-extra-9337e0c193432552a1883ea9b4965d3fc5f04211.tar.gz nutyx-extra-9337e0c193432552a1883ea9b4965d3fc5f04211.tar.bz2 nutyx-extra-9337e0c193432552a1883ea9b4965d3fc5f04211.tar.xz nutyx-extra-9337e0c193432552a1883ea9b4965d3fc5f04211.zip |
Merge remote branch 'nutyx-2009/master'
Diffstat (limited to 'test/libofa/gcc-4.patch')
-rw-r--r-- | test/libofa/gcc-4.patch | 39 |
1 files changed, 39 insertions, 0 deletions
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 <class Real> ++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 <class Real> + Real hypot(const Real &a, const Real &b) + { +@@ -56,15 +65,6 @@ + } + */ + +-/** +- @returns the absolute value of a real (no-complex) scalar. +-*/ +-template <class Real> +-Real abs(const Real &a) +-{ +- return (a > 0 ? a : -a); +-} +- + } + #endif + /* MATH_UTILS_H */ |