Most efficent way to calculate CRC64 with reflected input

我的未来我决定 提交于 2021-02-07 14:47:47
问题 I need to calculate a CRC-64 using this setup into this wonderful website: As you can see I require "input reflected" and that means that I need to reverse the bit order of any byte (a bit annoying). For the moment, I implemented this with a lookup table (for example 0x55 -> 0xAA), but I was wondering if there is any property of CRC which can be used to be more efficient. This is my code (in C): static const unsigned long long CRC64