]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/jacu.c
BUGFIX al MTF. Se estaba guardando el Z final y no el inicial y eso hacia cagadas.
[z.facultad/75.06/jacu.git] / src / jacu.c
index bc56a41350462d52983219a79a19e7d5a88e763d..dd1848594c3646e6695129682e62212cad2d4ef4 100644 (file)
@@ -132,7 +132,7 @@ int main(int argc, char* argv[])
                        {
                                int ii;
                                for(ii=0; ii<z_len; ii++)
-                                       printf("%c", z[ii]);
+                                       printf("(%c)", z[ii]);
                                printf("]\n");
 
                        }
@@ -156,9 +156,9 @@ int main(int argc, char* argv[])
                                /* Guardo la salida del MTF */
                                printf("Despues de MTF : [");
                                for(j=0; j<(i+sizeof(Uint32)); j++) {
-                                       fputc(mtf[j+sizeof(Uint32)], fp_out);
+                                       fputc(mtf[j], fp_out);
                                        putchar('(');
-                                       fputc(mtf[j+sizeof(Uint32)], stdout);
+                                       fputc(mtf[j], stdout);
                                        putchar(')');
                                }
                                printf("]\n");
@@ -209,7 +209,7 @@ int main(int argc, char* argv[])
                        {
                                int ii;
                                for(ii=0; ii<z_len; ii++)
-                                       printf("%c", z[ii]);
+                                       printf("(%c)", z[ii]);
                                printf("]\n");
 
                        }
@@ -229,11 +229,11 @@ int main(int argc, char* argv[])
                                PERR("Haciendo MTF Inv");
                                mtf = jacu_mtf_inv(z, block, block_size*sizeof(char)+sizeof(Uint32));
 
-                               printf("Luego de MTF = [");
+                               printf("Luego de MTF Inv= [");
                                {
                                        int ii;
                                        for(ii=0; ii<block_size+sizeof(Uint32); ii++)
-                                               printf("%c", mtf[ii]);
+                                               printf("(%c)", mtf[ii]);
                                        printf("]\n");
                                }