package/libs/zlib: Add ARM and NEON optimizations
authorDaniel Engberg <daniel.engberg.lists@pyret.net>
Tue, 5 Sep 2017 18:38:07 +0000 (20:38 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 2 Jan 2018 16:11:12 +0000 (17:11 +0100)
commit3acecba5209984e43397bc0eaa96822ccacb5712
tree9c15d5ce905137a93bf9db84ff384c47ff0c8b8e
parent383e8aeec703fee957f30892487d7bb746c1a212
package/libs/zlib: Add ARM and NEON optimizations

This adds two optimizations for ARM:
NEON optimized Adler(-)32 checksum algorithm (ARMv7 and newer NEON CPUs)
ARM(v7+) specific optimization for inflate
I've also connected inflate optimization to the build using the following
source as template.
https://github.com/mirror/chromium/commit/0397489124ce7e6aced020f8b85f5034c7d5f49b#diff-a62ad2db6c83dbc205d34bb9a8884f16

Additional info:
https://codereview.chromium.org/2676493007/
https://codereview.chromium.org/2722063002/

Sources:
https://github.com/madler/zlib/pull/251 (only the first commit)
https://github.com/madler/zlib/pull/256

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
package/libs/zlib/Makefile
package/libs/zlib/patches/001-neon-implementation-of-adler32.patch [new file with mode: 0644]
package/libs/zlib/patches/002-arm-specific-optimisations-for-inflate.patch [new file with mode: 0644]
package/libs/zlib/patches/003-attach-sourcefiles-in-patch-002-to-buildsystem.patch [new file with mode: 0644]