Commit 809e0d69 authored by malenov's avatar malenov Committed by Sandesh Venkatesh
Browse files

more elegant solution propose by Arthur

parent b63fcd9d
Loading
Loading
Loading
Loading
+32 −16
Original line number Diff line number Diff line
@@ -485,20 +485,24 @@ void Copy(
            y[i] = x[i];
            move16();
        }
    }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
    IF( y >= x )
#else
    ELSE
        return;
#endif
    }

#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    ELSE
    {
#endif
        FOR( i = L - 1; i >= 0; i-- )
        {
            y[i] = x[i];
            move16();
        }
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
}
/*-------------------------------------------------------------------*
 * Copy64:
@@ -519,20 +523,24 @@ void Copy64(
            y[i] = x[i];
            move64();
        }
    }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
    IF( y >= x )
#else
    ELSE
        return;
#endif
    }

#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    ELSE
    {
#endif
        FOR( i = L - 1; i >= 0; i-- )
        {
            y[i] = x[i];
            move64();
        }
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
}

void set64_fx(
@@ -568,14 +576,16 @@ void Copy_pword(
            move16();
            move16();
        }
    }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
    IF( y >= x )
#else
    ELSE
        return;
#endif
    }

#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    ELSE
    {
#endif
        FOR( i = L - 1; i >= 0; i-- )
        {
            y[i].v.im = x[i].v.im;
@@ -583,7 +593,9 @@ void Copy_pword(
            move16();
            move16();
        }
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
}
/*-------------------------------------------------------------------*
 * Copy32:
@@ -604,20 +616,24 @@ void Copy32(
            y[i] = x[i];
            move32();
        }
    }

#ifdef FIX_1052_COPY_CMPLX_DISCREPANCY
    IF( y >= x )
#else
    ELSE
        return;
#endif
    }

#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    ELSE
    {
#endif
        FOR( i = L - 1; i >= 0; i-- )
        {
            y[i] = x[i];
            move32();
        }
#ifndef FIX_1052_COPY_CMPLX_DISCREPANCY
    }
#endif
}

void set8_fx(