Changeset 0c452f2
- Timestamp:
- 10/06/14 19:56:14 (10 years ago)
- Branches:
- master
- Children:
- ad7f485
- Parents:
- 96316ba
- git-author:
- Hal Finkel <hfinkel@…> (10/06/14 19:56:14)
- git-committer:
- Hal Finkel <hfinkel@…> (10/06/14 19:56:14)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/CRC64.h
r96316ba r0c452f2 85 85 * appended to the original buffer, then the new total CRC64 should be -1. 86 86 */ 87 void crc64_invert(uint64_t cs, void * buffer);87 void crc64_invert(uint64_t cs, void *check_bytes); 88 88 89 89 /* -
src/CRC64.c
r96316ba r0c452f2 1320 1320 // Calculate the 'check bytes' for the provided checksum. If these bytes are 1321 1321 // appended to the original buffer, then the new total checksum should be -1. 1322 void crc64_invert(uint64_t cs, void * buffer) {1323 unsigned char *bytes = (unsigned char *) buffer;1322 void crc64_invert(uint64_t cs, void *check_bytes) { 1323 unsigned char *bytes = (unsigned char *) check_bytes; 1324 1324 cs ^= UINT64_C(0xffffffffffffffff); 1325 1325
Note: See TracChangeset
for help on using the changeset viewer.