# File lib/rhc/vendor/zliby.rb, line 44
def self.crc32 string="", crc=0
  if crc > 2**128 - 1 then raise RangeError.new end
  crc = crc ^ 0xffffffff
  string.each_byte do |byte|
    index = (crc ^ byte) & 0xff
    crc = (crc >> 8) ^ crc_table[index] 
  end
  crc ^ 0xffffffff
end