parameters: (bytes, crc=0)
return_statement: return crc
docstring: crc32 equivalent to crc32_small() from AP_Math/crc.cpp
docstring_summary: crc32 equivalent to crc32_small() from AP_Math/crc.cpp
docstring_tokens: crc32 equivalent to crc32_small () from AP_Math / crc . cpp
function: def crc32(bytes, crc=0):
      '''crc32 equivalent to crc32_small() from AP_Math/crc.cpp'''
      for byte in bytes:
          crc ^= byte
          for i in range(8):
              mask = (-(crc & 1)) & 0xFFFFFFFF
              crc >>= 1
              crc ^= (0xEDB88320 & mask)
      return crc
function_tokens: def crc32 ( bytes , crc = 0 ) : for byte in bytes : crc ^= byte for i in range ( 8 ) : mask = ( - ( crc & 1 ) ) & 0xFFFFFFFF crc >>= 1 crc ^= ( 0xEDB88320 & mask ) return crc