[zlib][riscv] Adding support for RISCV

Adding code to perform CPU features detection at runtime as also calls
in the entry points before processing (e.g. deflateInit(), etc).

Also add the missing bits in the CMake buildsystem to pass the proper
compiler flags and set up the defines that guard optimizations
(e.g. DEFLATE_SLIDE_HASH_RVV, ADLER32_SIMD_RVV for now).

Todo: update the GN buildsystem next.

Bug: 329282661
Change-Id: Ic5a2846b0404393d6d7ffcbd75db800725887ae5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5369154
Reviewed-by: Hans Wennborg <hans@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1274387}
NOKEYCHECK=True
GitOrigin-RevId: fd5ebdf2a679244930de70972e6d435e274fceee
5 files changed