[zlib] [aosp] Declare the SSSE3 adler32_simd_() as requiring SSSE3.

Android devices are at least x86-64-v2, but host build tools are (at the
time of writing) still required to support x86-64-v1. This leads to us
either (a) accidentally breaking the host by using v2 features where we
shouldn't or (b) accidentally nerfing devices by restricting ourselves
to v1 where we don't need to. Using __attribute__((__target__) like the
arm64 optimizations do lets us move the complexity (and potential for
accidents) out of the build system(s) and into the source, with the one
function that actually needs SSSE3 (and which is already guarded by a
CPUID check).

I'll come back for crc32_sse42_simd_() which Android
currently _never_ uses, kind of proving my point.

Bug: https://issuetracker.google.com/438515318
Change-Id: I41fbfd9685f7ee19fe8e90ecb6ec2735f62038e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6868232
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Commit-Queue: Elliott Hughes <enh@google.com>
Cr-Commit-Position: refs/heads/main@{#1505813}
NOKEYCHECK=True
GitOrigin-RevId: 29664c4b4846504138a11112b4e11200666cf194
1 file changed