- diff --git a/ptxdist/local_src/ecu01-comp-cap/mmc_imp.c b/ptxdist/local_src/ecu01-comp-cap/mmc_imp.c
- index 5edb6d2..6155d8a 100644
- --- a/ptxdist/local_src/ecu01-comp-cap/mmc_imp.c
- +++ b/ptxdist/local_src/ecu01-comp-cap/mmc_imp.c
- @@ -98,16 +98,8 @@ int GetPhaseShift(const unsigned int * restrict ref, const unsigned int * restri
- * ref were the previous pair of values was found
- */
- -
- -/*
- - * In *theory* we should count from the last value of |j|, but somehow
- - * this does not work. We need to re-investigate this later.
- - */
- -#ifdef DOES_NOT_WORK_YET
- - for ( ; j<size ; j++) {
- -#else
- - for (j=0 ; j<size ; j++) {
- -#endif
- +#define MAXNUM(a,b) (((a)>(b))?(a):(b)) /* MIN()/MAX() might not be useable in a portable way */
- + for (j=MAXNUM(j-1, 0) ; j<size ; j++) {
- diff = shift[j] - ref[i]; /* calculate difference between shift and ref */
- /*
Quantron ccfilter loop optimisation
Posted by Anonymous on Mon 28th Oct 2019 14:18
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.