0x1864CFB
0x100.times.collect{|i| res = i << 16 8.times{ res <<= 1 res ^= POLY if (res & 0x1000000) > 0 } res }
114 115 116 117 118
# File 'lib/gps_pvt/util.rb', line 114 def CRC24Q.checksum(bytes) bytes.inject(0){|crc, byte| ((crc << 8) & 0xFFFF00) ^ TABLE[byte ^ ((crc >> 16) & 0xFF)] } end