MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / pnMult

Method pnMult

Libraries/unrar/rs.cpp:64–71  ·  view source on GitHub ↗

Multiply polynomial 'p1' to 'p2' and store the result in 'r'.

Source from the content-addressed store, hash-verified

62
63// Multiply polynomial 'p1' to 'p2' and store the result in 'r'.
64void 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
74void RSCoder::Encode(byte *Data,int DataSize,byte *DestData)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected