aboutsummaryrefslogtreecommitdiff
path: root/audio/libofa
diff options
context:
space:
mode:
authorAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-10-01 02:38:27 +0000
committerAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-10-01 02:38:27 +0000
commitb93f32e89cf3dd3aef2c456c7ca41191be528339 (patch)
tree4897ecf11a330242121262ae6688bda8fba5d962 /audio/libofa
parent5ef0f821ecc6c892cb7a8ca232a24b7c0e3e5aab (diff)
downloadports-b93f32e89cf3dd3aef2c456c7ca41191be528339.tar.gz
ports-b93f32e89cf3dd3aef2c456c7ca41191be528339.zip
Notes
Diffstat (limited to 'audio/libofa')
-rw-r--r--audio/libofa/files/patch-lib_JAMA_tnt__math_utils.h33
1 files changed, 33 insertions, 0 deletions
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 <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
+@@ -55,15 +63,6 @@
+ return a > b ? a : b;
+ }
+ */
+-
+-/**
+- @returns the absolute value of a real (no-complex) scalar.
+-*/
+-template <class Real>
+-Real abs(const Real &a)
+-{
+- return (a > 0 ? a : -a);
+-}
+
+ }
+ #endif