[zlib] Re-sync with zlib 1.2.12, patch 13 of N (Reland)

This time we add an extra guard where it is required to explicitly
activate the new Armv8.1 CRC-32 provided by zlib 1.2.12
(i.e. USE_CANONICAL_ARMV8_CRC32) since we measured and the serial
implementation that we ship since early 2018 is slightly faster.

Ported:
- Add use of the ARMv8 crc32 instructions when requested.
- Use ARM crc32 instructions if the ARM architecture has them.
- Explicitly note that the 32-bit check values are 32 bits.

Bug: 1032721
Change-Id: I0ca87270ef470de243e62e9056ed0cd195da21ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3607702
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#996421}
NOKEYCHECK=True
GitOrigin-RevId: 43824b58db1f48f93a50194c0488ec4495f4c492
2 files changed