Reduce code size in crc hash functions