]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
ARM: check cpu feature once at init time
authorSebastian Pop <s.pop@samsung.com>
Fri, 25 Jan 2019 17:44:46 +0000 (11:44 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 1 Mar 2019 10:40:23 +0000 (11:40 +0100)
commit1cd1b4eb0eddbe8c142d8a7223fde9bc212739dd
treee7fc953c1b6bf986d170c7e93aa93fbf4b97a39f
parentd5480df526b5a19ee2fcfce93b8121d2cdfb70ef
ARM: check cpu feature once at init time

This makes the checks for arm cpu features as inexpensive as on the x86 side
by calling the runtime feature detection once in deflate/inflate init and then
storing the result in a global variable.
12 files changed:
arch/aarch64/arm.h [new file with mode: 0644]
arch/aarch64/armfeature.c
arch/arm/Makefile.in
arch/arm/arm.h [new file with mode: 0644]
arch/arm/armfeature.c
arch/x86/x86.c
arch/x86/x86.h
deflate.c
deflate_p.h
functable.c
inflate.c
zutil.h