From 31e06b0f175bd98d81407cee2946baa319bbeeec Mon Sep 17 00:00:00 2001 From: alexbl Date: Sun, 1 Oct 2006 02:38:27 +0000 Subject: - Unbreak on gcc 4.1 Approved by: novel (mentor, implicit) Obtained from: musicbrainz SVN repository --- .../libofa/files/patch-lib_JAMA_tnt__math_utils.h | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h (limited to 'audio/libofa') diff --git a/audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h b/audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h new file mode 100644 index 000000000000..f8506791a19d --- /dev/null +++ b/audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h @@ -0,0 +1,33 @@ +--- lib/JAMA/tnt_math_utils.h.orig Sat Sep 30 19:34:43 2006 ++++ lib/JAMA/tnt_math_utils.h Sat Sep 30 19:36:07 2006 +@@ -20,6 +20,14 @@ + 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 +@@ -55,15 +63,6 @@ + return a > b ? a : b; + } + */ +- +-/** +- @returns the absolute value of a real (no-complex) scalar. +-*/ +-template +-Real abs(const Real &a) +-{ +- return (a > 0 ? a : -a); +-} + + } + #endif -- cgit