For RAR 1.4 archives in case somebody still has them.
| 88 | #ifndef SFX_MODULE |
| 89 | // For RAR 1.4 archives in case somebody still has them. |
| 90 | ushort Checksum14(ushort StartCRC,const void *Addr,size_t Size) |
| 91 | { |
| 92 | byte *Data=(byte *)Addr; |
| 93 | for (size_t I=0;I<Size;I++) |
| 94 | { |
| 95 | StartCRC=(StartCRC+Data[I])&0xffff; |
| 96 | StartCRC=((StartCRC<<1)|(StartCRC>>15))&0xffff; |
| 97 | } |
| 98 | return StartCRC; |
| 99 | } |
| 100 | #endif |
| 101 | |
| 102 |