… | |
… | |
264 | * need to match what sum or other utility may come up with - |
264 | * need to match what sum or other utility may come up with - |
265 | * as long as we get the same results on the same real file |
265 | * as long as we get the same results on the same real file |
266 | * data, it does the job as it lets the client know if |
266 | * data, it does the job as it lets the client know if |
267 | * the file has the same data or not. |
267 | * the file has the same data or not. |
268 | */ |
268 | */ |
269 | ROTATE_RIGHT (bmaps_checksum); |
269 | rotate_right (bmaps_checksum); |
270 | bmaps_checksum += value & 0xff; |
270 | bmaps_checksum += value & 0xff; |
271 | bmaps_checksum &= 0xffffffff; |
271 | bmaps_checksum &= 0xffffffff; |
272 | |
272 | |
273 | ROTATE_RIGHT (bmaps_checksum); |
273 | rotate_right (bmaps_checksum); |
274 | bmaps_checksum += (value >> 8) & 0xff; |
274 | bmaps_checksum += (value >> 8) & 0xff; |
275 | bmaps_checksum &= 0xffffffff; |
275 | bmaps_checksum &= 0xffffffff; |
276 | for (l = 0; l < strlen (q); l++) |
276 | for (l = 0; l < strlen (q); l++) |
277 | { |
277 | { |
278 | ROTATE_RIGHT (bmaps_checksum); |
278 | rotate_right (bmaps_checksum); |
279 | bmaps_checksum += q[l]; |
279 | bmaps_checksum += q[l]; |
280 | bmaps_checksum &= 0xffffffff; |
280 | bmaps_checksum &= 0xffffffff; |
281 | } |
281 | } |
282 | |
282 | |
283 | xbm[nroffiles].number = value; |
283 | xbm[nroffiles].number = value; |