Lines Matching refs:newCrc
84 uint32 newCrc = state->crc; in crc_processBytes() local
87 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ *buf) & 0xff]; in crc_processBytes()
91 state->crc, bufLen, newCrc); in crc_processBytes()
93 state->crc = newCrc; in crc_processBytes()
98 uint32 newCrc = state->crc; in crc_processUint8() local
100 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ val) & 0xff]; in crc_processUint8()
103 state->crc, (int) val, newCrc); in crc_processUint8()
105 state->crc = newCrc; in crc_processUint8()
110 uint32 newCrc = state->crc; in crc_processUint16() local
112 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ (val & 0xff)) & 0xff]; in crc_processUint16()
113 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ (val >> 8) ) & 0xff]; in crc_processUint16()
116 state->crc, (int) val, newCrc); in crc_processUint16()
118 state->crc = newCrc; in crc_processUint16()
123 uint32 newCrc = state->crc; in crc_processUint32() local
125 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ (val & 0xff)) & 0xff]; in crc_processUint32()
126 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ ((val >> 8) & 0xff)) & 0xff]; in crc_processUint32()
127 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ ((val >> 16) & 0xff)) & 0xff]; in crc_processUint32()
128 newCrc = (newCrc >> 8) ^ crcTable[(newCrc ^ ((val >> 24) )) & 0xff]; in crc_processUint32()
132 state->crc, (int) val, newCrc); in crc_processUint32()
134 state->crc = newCrc; in crc_processUint32()