Hans Wennborg
70269b4845
Unify the two CRC implementations
...
David added the JamCRC implementation in r246590. More recently, Eugene
added a CRC-32 implementation in r357901, which falls back to zlib's
crc32 function if present.
These checksums are essentially the same, so having multiple
implementations seems unnecessary. This replaces the CRC-32
implementation with the simpler one from JamCRC, and implements the
JamCRC interface in terms of CRC-32 since this means it can use zlib's
implementation when available, saving a few bytes and potentially making
it faster.
JamCRC took an ArrayRef<char> argument, and CRC-32 took a StringRef.
This patch changes it to ArrayRef<uint8_t> which I think is the best
choice, and simplifies a few of the callers nicely.
Differential revision: https://reviews.llvm.org/D68570
llvm-svn: 374148
2019-10-09 09:06:30 +00:00
..
2019-01-19 08:50:56 +00:00
2019-10-03 15:53:50 +00:00
2019-07-31 03:22:08 +00:00
2019-01-19 08:50:56 +00:00
2019-04-25 11:57:40 +00:00
2019-05-30 12:57:04 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 15:54:37 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 15:54:37 +00:00
2018-06-13 18:32:02 +00:00
2019-01-19 08:50:56 +00:00
2019-09-05 18:10:29 +00:00
2019-07-11 08:54:28 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-10-09 09:06:30 +00:00
2019-08-27 11:24:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-03-11 09:06:18 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-14 13:59:04 +00:00
2019-10-04 15:47:23 +00:00
2019-07-30 00:27:33 +00:00
2019-08-14 13:59:04 +00:00
2019-09-05 18:10:29 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 15:54:37 +00:00
2019-01-19 10:56:40 +00:00
2019-04-25 12:51:42 +00:00
2019-04-12 18:18:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-25 09:03:32 +00:00
2019-10-03 15:53:50 +00:00
2019-01-19 08:50:56 +00:00
2019-08-22 08:13:30 +00:00
2019-05-20 20:53:05 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-22 08:13:30 +00:00
2019-01-19 08:50:56 +00:00
2019-08-14 13:59:04 +00:00
2019-08-05 05:43:48 +00:00
2019-08-14 13:59:04 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-14 13:59:04 +00:00
2019-01-19 08:50:56 +00:00
2019-01-20 21:19:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-31 12:52:17 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 15:54:37 +00:00
2019-01-19 08:50:56 +00:00
2019-05-06 13:41:54 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 00:45:53 +00:00
2019-01-19 08:50:56 +00:00
2019-08-15 15:54:37 +00:00
2019-01-19 08:50:56 +00:00