Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:crc

16 /** CRC table for the CRC-16. The poly is 0x8005 (x16 + x15 + x2 + 1) */
53 * Compute the CRC-16 for the data buffer
55 * @param crc previous CRC value
58 * @return the updated CRC value
60 crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len)
69 * int for holding the CRC value to avoid this.
71 crc = (((crc >> 8) & 0xffU) ^
72 crc16_table[(crc ^ *cp++) & 0xffU]) & 0x0000ffffU;
73 return crc;