@nb.jit('<STR_LIT>', nopython=True, nogil=True)<EOL>def crc16jit(buf, offset, crc, length):
for index in range(offset, offset + length):<EOL><INDENT>data = buf[index]<EOL>lookup = crc16_tab[((nb.u2(crc) >> <NUM_LIT:8>) & nb.u2(<NUM_LIT>)) ^ (data & nb.u2(<NUM_LIT>))]<EOL>crc = ((nb.u2(crc) << nb.u2(<NUM_LIT:8>)) & nb.u2(<NUM_LIT>)) ^ lookup<EOL>crc = nb.u2(crc) & nb.u2(<NUM_LIT>)<EOL><DEDENT>return crc<EOL>
CRC16 implementation acording to CCITT standards.