[MN-dev] [mndiff]: r189 - trunk/noe/ldpc.c

michael subversion at mplayerhq.hu
Tue Jul 13 05:04:37 CEST 2010


Author: michael
Date: Tue Jul 13 05:04:36 2010
New Revision: 189

Log:
Get rid of 2 multiply by 1

Modified:
   trunk/noe/ldpc.c

Modified: trunk/noe/ldpc.c
==============================================================================
--- trunk/noe/ldpc.c	Tue Jul 13 04:28:16 2010	(r188)
+++ trunk/noe/ldpc.c	Tue Jul 13 05:04:36 2010	(r189)
@@ -293,8 +293,7 @@ int EXT(decodeLDPC)(LDPCContext *c, LDPC
         for(j=0; j<c->nzc; j++){
             int y= c->parity_matrix[i][0][j] + c->parity_len;
             if(y>=c->parity_len){
-                int p= -EXT(exp)[c->parity_matrix[i][1][j]];
-                syndrom[y]^= p & v;
+                syndrom[y]^= v;
             }
         }
     }
@@ -320,8 +319,8 @@ int EXT(decodeLDPC)(LDPCContext *c, LDPC
 
         int idx= c->inv_matrix[j][0];
         while(idx<parity_len){
-            v^= syndrom[idx] & c->inv_matrix[j++][1];
-            idx= c->inv_matrix[j][0];
+            v^= syndrom[idx];
+            idx= c->inv_matrix[++j][0];
         }
         j++;
         syndrom[i] = v;


More information about the Mndiff-dev mailing list