diff options
author | stephen <stephen@FreeBSD.org> | 2014-05-18 03:34:08 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2014-05-18 03:34:08 +0800 |
commit | 13ff9667ffa79356e8512a844298ce97ecfffaf2 (patch) | |
tree | a27bd11682bd151ad152c95ee8eea0fe180c33a7 /math/octave-forge-lssa | |
parent | 60e8e4469890b3625c54a30978b4330f9673f817 (diff) | |
download | freebsd-ports-gnome-13ff9667ffa79356e8512a844298ce97ecfffaf2.tar.gz freebsd-ports-gnome-13ff9667ffa79356e8512a844298ce97ecfffaf2.tar.zst freebsd-ports-gnome-13ff9667ffa79356e8512a844298ce97ecfffaf2.zip |
- Make clang compliant.
- Bump portrevision.
Diffstat (limited to 'math/octave-forge-lssa')
-rw-r--r-- | math/octave-forge-lssa/Makefile | 2 | ||||
-rw-r--r-- | math/octave-forge-lssa/files/patch-fastlscomplex.cc | 74 |
2 files changed, 75 insertions, 1 deletions
diff --git a/math/octave-forge-lssa/Makefile b/math/octave-forge-lssa/Makefile index 896649d664ef..1c7eaaa82ff0 100644 --- a/math/octave-forge-lssa/Makefile +++ b/math/octave-forge-lssa/Makefile @@ -3,7 +3,7 @@ PORTNAME= octave-forge-lssa PORTVERSION= 0.1.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MAINTAINER= stephen@FreeBSD.org diff --git a/math/octave-forge-lssa/files/patch-fastlscomplex.cc b/math/octave-forge-lssa/files/patch-fastlscomplex.cc new file mode 100644 index 000000000000..8e5239631b2d --- /dev/null +++ b/math/octave-forge-lssa/files/patch-fastlscomplex.cc @@ -0,0 +1,74 @@ +--- fastlscomplex.cc-orig 2014-05-17 13:56:21.000000000 -0500 ++++ fastlscomplex.cc 2014-05-17 14:06:47.000000000 -0500 +@@ -372,8 +372,9 @@ + + --tpra; + h = *tpra * *exp_ptr; +- record_current->power_series[p].real() -= h.imag(); +- record_current->power_series[p].imag() += h.real(); ++ // record_current->power_series[p].real() -= h.imag(); ++ // record_current->power_series[p].imag() += h.real(); ++ record_current->power_series[p] = std::complex<double>(record_current->power_series[p].real() - h.imag(), record_current->power_series[p].imag() + h.real()); + + if (++exp_ptr >= exp_pse_ptr ) + break; +@@ -386,8 +387,9 @@ + + --tpra; + h = -*tpra * *exp_ptr; +- record_current->power_series[p].real() -= h.imag(); +- record_current->power_series[p].imag() += h.real(); ++ // record_current->power_series[p].real() -= h.imag(); ++ // record_current->power_series[p].imag() += h.real(); ++ record_current->power_series[p] = std::complex<double>(record_current->power_series[p].real() - h.imag(), record_current->power_series[p].imag() + h.real()); + + if (++exp_ptr >= exp_pse_ptr) + break; +@@ -422,8 +424,9 @@ + + tprb -= 2; + h = *tprb * *exp_ptr; +- record_current->power_series[p].real() -= h.imag(); +- record_current->power_series[p].imag() += h.real(); ++ // record_current->power_series[p].real() -= h.imag(); ++ // record_current->power_series[p].imag() += h.real(); ++ record_current->power_series[p] = std::complex<double>(record_current->power_series[p].real() - h.imag(), record_current->power_series[p].imag() + h.real()); + + if ( ++exp_ptr >= exp_pse_ptr ) + break; +@@ -436,8 +439,9 @@ + + tprb -= 2; + h = - *tprb * *exp_ptr; +- record_current->power_series[p].real() -= h.imag(); +- record_current->power_series[p].imag() += h.real(); ++ // record_current->power_series[p].real() -= h.imag(); ++ // record_current->power_series[p].imag() += h.real(); ++ record_current->power_series[p] = std::complex<double>(record_current->power_series[p].real() - h.imag(), record_current->power_series[p].imag() + h.real()); + + if (++exp_ptr >= exp_pse_ptr) + break; +@@ -467,8 +471,9 @@ + + --tpra; + h = *tpra * *exp_ptr; +- record_next->power_series[q].real() -= h.imag(); +- record_next->power_series[q].imag() += h.real(); ++ // record_current->power_series[q].real() -= h.imag(); ++ // record_current->power_series[q].imag() += h.real(); ++ record_current->power_series[q] = std::complex<double>(record_current->power_series[q].real() - h.imag(), record_current->power_series[q].imag() + h.real()); + + if (++exp_ptr >= exp_pse_ptr) + break; +@@ -481,8 +486,9 @@ + + --tpra; + h = -*tpra * *exp_ptr; +- record_next->power_series[q].real() -= h.imag(); +- record_next->power_series[q].imag() += h.real(); ++ // record_current->power_series[q].real() -= h.imag(); ++ // record_current->power_series[q].imag() += h.real(); ++ record_current->power_series[q] = std::complex<double>(record_current->power_series[q].real() - h.imag(), record_current->power_series[q].imag() + h.real()); + + if (++exp_ptr >= exp_pse_ptr) + break; |