6be2ff7d3e
Derived from an implementation by Mark Adler. The fast loop performs three simultaneous CRCs over subsets of the data before composing them. This takes advantage of certain properties of the CRC32 implementation in Intel hardware. (The CRC instruction takes 1 cycle but has 2-3 cycles of latency.) The CRC32 instruction does not manipulate FPU state. i386 does not have the crc32q instruction, so avoid it there. Otherwise the implementation is identical to amd64. Add basic userland tests to verify correctness on a variety of inputs. PR: 216467 Reported by: Ben RUBSON <ben.rubson at gmail.com> Reviewed by: kib@, markj@ (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9342 |
||
---|---|---|
.. | ||
arm | ||
x86 | ||
arc4random.c | ||
ashldi3.c | ||
ashrdi3.c | ||
asprintf.c | ||
bcd.c | ||
bcmp.c | ||
bsearch.c | ||
cmpdi2.c | ||
crc32.c | ||
divdi3.c | ||
explicit_bzero.c | ||
ffs.c | ||
ffsl.c | ||
ffsll.c | ||
fls.c | ||
flsl.c | ||
flsll.c | ||
fnmatch.c | ||
iconv_converter_if.m | ||
iconv_ucs.c | ||
iconv_xlat16.c | ||
iconv_xlat.c | ||
iconv.c | ||
inet_aton.c | ||
inet_ntoa.c | ||
inet_ntop.c | ||
inet_pton.c | ||
jenkins_hash.c | ||
lshrdi3.c | ||
mcount.c | ||
memcchr.c | ||
memchr.c | ||
memcmp.c | ||
memmem.c | ||
memmove.c | ||
memset.c | ||
moddi3.c | ||
murmur3_32.c | ||
qdivrem.c | ||
qsort_r.c | ||
qsort.c | ||
quad.h | ||
random.c | ||
scanc.c | ||
strcasecmp.c | ||
strcat.c | ||
strchr.c | ||
strcmp.c | ||
strcpy.c | ||
strcspn.c | ||
strdup.c | ||
strlcat.c | ||
strlcpy.c | ||
strlen.c | ||
strncat.c | ||
strncmp.c | ||
strncpy.c | ||
strndup.c | ||
strnlen.c | ||
strrchr.c | ||
strsep.c | ||
strspn.c | ||
strstr.c | ||
strtol.c | ||
strtoq.c | ||
strtoul.c | ||
strtouq.c | ||
strvalid.c | ||
timingsafe_bcmp.c | ||
ucmpdi2.c | ||
udivdi3.c | ||
umoddi3.c | ||
zlib.c |