diff options
author | 2006-08-30 18:57:50 +0000 | |
---|---|---|
committer | 2006-08-30 18:57:50 +0000 | |
commit | 019d52ead8a8aa6365dfbf660d232c9fa59b25f6 (patch) | |
tree | 97d85de4eda0d4b9be126587cdf5de21874ae3a7 /media-libs/libofa/files/libofa-0.9.3-gcc-4.patch | |
parent | Version bump (diff) | |
download | historical-019d52ead8a8aa6365dfbf660d232c9fa59b25f6.tar.gz historical-019d52ead8a8aa6365dfbf660d232c9fa59b25f6.tar.bz2 historical-019d52ead8a8aa6365dfbf660d232c9fa59b25f6.zip |
GCC 4 patch, thanks to Dave Baker.
Package-Manager: portage-2.1.1_rc1-r2
Diffstat (limited to 'media-libs/libofa/files/libofa-0.9.3-gcc-4.patch')
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch new file mode 100644 index 000000000000..d1059bafa55f --- /dev/null +++ b/media-libs/libofa/files/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 */
|