]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Make big endians first class citizens again
authorAdam Stylinski <kungfujesus06@gmail.com>
Fri, 20 Dec 2024 23:53:51 +0000 (18:53 -0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 21 Dec 2024 12:16:08 +0000 (13:16 +0100)
commit04d1b758194099bad80f5769610f2679499e135f
treeaf0cbde73630352fbbb021368329bb198d17180a
parentdbccbd17a94fb43f7938846e3e225c0c2480bb93
Make big endians first class citizens again

No longer do the big iron on yore which lack SIMD optimized loads need
to search strings a byte at a time like primitive machines of the vax
era. This guard here was mostly due to the fact that the string
comparison was searched with "count trailing zero", which assumes an
endianness.  We can just conditionally use leading zeros when on big
endian and stop using the extremely naive C implementation. This makes
things a tad bit faster.
arch/generic/compare256_c.c
arch/generic/generic_functions.h
zbuild.h