Skip to content
Commit 2b4888a4 authored by Adenilson Cavalcanti's avatar Adenilson Cavalcanti Committed by Commit Bot
Browse files

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: default avatarAdenilson 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
parent 796333a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment