[MN-dev] [mndiff]: r115 - in trunk/noe: galois.c rs.c

michael subversion at mplayerhq.hu
Sat Oct 25 19:33:43 CEST 2008


Author: michael
Date: Sat Oct 25 19:33:42 2008
New Revision: 115

Log:
indent


Modified:
   trunk/noe/galois.c
   trunk/noe/rs.c

Modified: trunk/noe/galois.c
==============================================================================
--- trunk/noe/galois.c	(original)
+++ trunk/noe/galois.c	Sat Oct 25 19:33:42 2008
@@ -259,8 +259,8 @@ GFF4Element EXT(evalPoly)(GFF4Element *s
     int j;
 
     if(M || x==MINUS1){
-    for(j=src[0]; j>0; j--)
-        acc = sum(prod(acc, x), src[j]);
+        for(j=src[0]; j>0; j--)
+            acc = sum(prod(acc, x), src[j]);
     }else{
         for(j=src[0]; j>0; j--)
             acc = reduce(acc*x + src[j]);

Modified: trunk/noe/rs.c
==============================================================================
--- trunk/noe/rs.c	(original)
+++ trunk/noe/rs.c	Sat Oct 25 19:33:42 2008
@@ -462,15 +462,15 @@ for(i=0; i<erasureCount; i++){
         }
     }
 
-        if(gfftEval>1){
-            //FIXME
-            memset(omega + omega[0] + 2, 0, (codeCount - omega[0] - 1)*sizeof(GFF4Element));
-            memset(psi   + psi  [0] + 2, 0, (codeCount - psi  [0] - 1)*sizeof(GFF4Element));
-            omega++;
-            psi++;
-            EXT(gfft)(omega, omega, codeBits);
-            EXT(gfft)(psi  , psi  , codeBits);
-        }
+    if(gfftEval>1){
+        //FIXME
+        memset(omega + omega[0] + 2, 0, (codeCount - omega[0] - 1)*sizeof(GFF4Element));
+        memset(psi   + psi  [0] + 2, 0, (codeCount - psi  [0] - 1)*sizeof(GFF4Element));
+        omega++;
+        psi++;
+        EXT(gfft)(omega, omega, codeBits);
+        EXT(gfft)(psi  , psi  , codeBits);
+    }
 
     for(i=0; i<erasureCount + errorCount; i++){
         const int r= i<erasureCount ? erasure[i] : error[i-erasureCount];



More information about the Mndiff-dev mailing list