Multiply polynomial 'p1' to 'p2' and store the result in 'r'.
| 62 | |
| 63 | // Multiply polynomial 'p1' to 'p2' and store the result in 'r'. |
| 64 | void RSCoder::pnMult(int *p1,int *p2,int *r) |
| 65 | { |
| 66 | Clean(r,ParSize); |
| 67 | for (int I=0;I<ParSize;I++) |
| 68 | if (p1[I]!=0) |
| 69 | for(int J=0;J<ParSize-I;J++) |
| 70 | r[I+J]^=gfMult(p1[I],p2[J]); |
| 71 | } |
| 72 | |
| 73 | |
| 74 | void RSCoder::Encode(byte *Data,int DataSize,byte *DestData) |
nothing calls this directly
no outgoing calls
no test coverage detected