Re: [U-Boot] [PATCH 1/9] lib: Add CRC32-C

2017-09-03 Thread Marek Behun
Hi Łukasz, the Castagnoli CRC32 algorithm just uses different polynomial. Perhaps I should generalize the original CRC32. Marek On Sun, 3 Sep 2017 17:47:28 +0200 Łukasz Majewski wrote: > Hi Marek, > > > This is needed for BTRFS. > > > > Signed-off-by: Marek Behun

Re: [U-Boot] [PATCH 1/9] lib: Add CRC32-C

2017-09-03 Thread Łukasz Majewski
Hi Marek, This is needed for BTRFS. Signed-off-by: Marek Behun create mode 100644 lib/crc32c.c Excuse me my ignorance, but in u-boot we already have: ./lib/crc32.c is the crc32c algorithm a different one from venerable crc32? diff --git a/include/u-boot/crc.h

[U-Boot] [PATCH 1/9] lib: Add CRC32-C

2017-09-03 Thread Marek Behún
This is needed for BTRFS. Signed-off-by: Marek Behun create mode 100644 lib/crc32c.c diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 6764d58bab..6d08f5df98 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -28,4 +28,8 @@ uint32_t crc32_no_comp