aboutsummaryrefslogtreecommitdiff
path: root/libraries/libofa/libofa-0.9.3-gcc-4.patch
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2010-05-12 23:30:37 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:30:37 +0200
commite2bf36b80af1d31ad65303bf1f739b0fc6bff797 (patch)
tree52f356adba101148f8bcfecdaccc255695fd60c0 /libraries/libofa/libofa-0.9.3-gcc-4.patch
parent8d93c185124cc0c2901beee32fbfa2afc027cea1 (diff)
libraries/libofa: Added to 12.2 repository
Diffstat (limited to 'libraries/libofa/libofa-0.9.3-gcc-4.patch')
-rw-r--r--libraries/libofa/libofa-0.9.3-gcc-4.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/libofa/libofa-0.9.3-gcc-4.patch b/libraries/libofa/libofa-0.9.3-gcc-4.patch
new file mode 100644
index 0000000000000..d1059bafa55f1
--- /dev/null
+++ b/libraries/libofa/libofa-0.9.3-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 */