Commit 58a18b53 authored by malenov's avatar malenov Committed by Sandesh Venkatesh
Browse files

- insert explanation

- fix indentation
- add return
parent 809e0d69
Loading
Loading
Loading
Loading
+27 −17
Original line number Diff line number Diff line
@@ -469,6 +469,7 @@ Word32 sum2_fx_mod( /* o : sum of all squared vector element
 * Copy:
 *
 * Copy vector x[] to y[]
 * 
 *-------------------------------------------------------------------*/
void Copy(
    const Word16 x[], /* i  : input vector  */
@@ -487,6 +488,7 @@ void Copy(
        }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
        /* Location of x and y may differ depending on platform/memory allocation. Since IF and ELSE has different complexity count, the early return is used instead of ELSE to ensure the same complexity number regardless of x and y memory addresses. */
        return;
#endif
    }
@@ -500,6 +502,8 @@ void Copy(
        y[i] = x[i];
        move16();
    }

    return;
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
@@ -525,6 +529,7 @@ void Copy64(
        }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
        /* Location of x and y may differ depending on platform/memory allocation. Since IF and ELSE has different complexity count, the early return is used instead of ELSE to ensure the same complexity number regardless of x and y memory addresses. */
        return;
#endif
    }
@@ -538,6 +543,8 @@ void Copy64(
        y[i] = x[i];
        move64();
    }

    return;
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
@@ -578,6 +585,7 @@ void Copy_pword(
        }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
        /* Location of x and y may differ depending on platform/memory allocation. Since IF and ELSE has different complexity count, the early return is used instead of ELSE to ensure the same complexity number regardless of x and y memory addresses. */
        return;
#endif
    }
@@ -593,6 +601,8 @@ void Copy_pword(
        move16();
        move16();
    }

    return;
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif