Commit 77988f58 authored by Raymond Knopp's avatar Raymond Knopp

modified endian on unoptimized encoder

parent 4d979f19
...@@ -460,7 +460,7 @@ int ldpc_encoder_orig(unsigned char *test_input,unsigned char *channel_input,sho ...@@ -460,7 +460,7 @@ int ldpc_encoder_orig(unsigned char *test_input,unsigned char *channel_input,sho
{ {
//c[i] = test_input[i/8]<<(i%8); //c[i] = test_input[i/8]<<(i%8);
//c[i]=c[i]>>7&1; //c[i]=c[i]>>7&1;
c[i]=(test_input[i/8]&(1<<(i&7)))>>(i&7); c[i]=(test_input[i/8]&(128>>(i&7)))>>(7-(i&7));
} }
// parity check part // parity check part
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment