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-08-22 08:13:30 +00:00
2019-09-05 09:07:05 +00:00
2019-07-26 15:57:50 +00:00
2019-09-10 22:05:01 +00:00
2019-01-19 08:50:56 +00:00
2019-07-05 16:05:17 +00:00
2019-06-15 10:24:47 +00:00
2019-09-18 18:14:42 +00:00
2019-07-16 04:46:31 +00:00
2019-06-14 13:45:21 +00:00
2019-05-30 12:57:04 +00:00
2019-09-17 21:42:38 +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-17 15:38:27 +00:00
2019-01-19 08:50:56 +00:00
2019-04-17 15:38:27 +00:00
2019-01-19 08:50:56 +00:00
2019-06-15 10:09:59 +00:00
2019-01-19 08:50:56 +00:00
2019-08-05 05:43:48 +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-15 15:54:37 +00:00
2019-01-19 08:50:56 +00:00
2019-10-05 01:37:04 +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-19 19:49:57 +00:00
2019-10-09 09:06:30 +00:00
2019-01-19 08:50:56 +00:00
2019-08-27 11:24:08 +00:00
2019-01-19 08:50:56 +00:00
2018-10-23 21:51:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-27 15:33:22 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 09:57:59 +00:00
2019-09-10 22:05:01 +00:00
2019-07-12 16:23:25 +00:00
2019-10-01 21:37:55 +00:00
2019-10-01 21:37:55 +00:00
2019-08-05 05:43:48 +00:00
2019-08-15 15:54:37 +00:00
2019-09-18 08:47:09 +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-10-02 11:04:55 +00:00
2019-07-12 16:23:25 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 10:56:40 +00:00
2019-08-15 15:54:37 +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-07-16 04:46:31 +00:00
2019-08-19 19:49:57 +00:00
2019-01-19 08:50:56 +00:00
2019-05-20 20:53:05 +00:00
2019-08-22 08:13:30 +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 11:33:30 +00:00
2019-08-06 15:46:45 +00:00
2019-01-19 08:50:56 +00:00
2019-07-25 16:58:15 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-24 02:40:20 +00:00
2019-01-19 08:50:56 +00:00
2019-08-14 13:59:04 +00:00
2019-08-23 17:25:21 +00:00
2019-09-24 14:42:36 +00:00
2019-08-16 21:25:40 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-15 22:07:56 +00:00
2019-08-15 10:05:22 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-21 05:40:31 +00:00
2019-08-15 15:54:37 +00:00
2019-04-23 14:51:27 +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-07-09 18:10:06 +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-09-05 09:26:04 +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-07-03 01:02:43 +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-10-01 11:25:29 +00:00
2019-01-19 08:50:56 +00:00
2019-08-02 07:22:34 +00:00
2019-01-19 08:50:56 +00:00
2019-08-30 13:39:22 +00:00
2019-08-15 15:54:37 +00:00