Using the same hash function in compression on both x86 and ARM

On Intel the instruction used is CRC-32C (Castagnoli), which uses a
different polynomial than 'traditional' crc32 deployed in zlib.

Fortunately ARM has instructions for both polynomials, so this patch
will ensure that compressed content using Chromium's zlib will match
i.e. checksums should be the same.

Bug: https://issuetracker.google.com/115695768
Change-Id: Ia22bc150e89afa345a6d3149c30332a6c1e7934d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1726551
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#683225}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1fa3786817bbf78bcfee9d8675b588ab9fb0b248
1 file changed