freebsd kernel with SKQ
Go to file
cem c4b27423f5 calculate_crc32c: Add SSE4.2 implementation on x86
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
2017-01-31 03:26:32 +00:00
bin Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
cddl Fix an unchecked return value in zfsd 2017-01-18 22:10:18 +00:00
contrib Pull in r279454 from upstream llvm trunk (by James Molloy): 2017-01-30 18:35:24 +00:00
crypto Merge OpenSSL 1.0.2k. 2017-01-26 19:10:29 +00:00
etc Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
gnu Rename LLD_AS_LD to LLD_IS_LD, for consistency with CLANG_IS_CC 2017-01-27 01:59:12 +00:00
include Make use of clang nullability attributes. 2017-01-28 20:54:43 +00:00
kerberos5 Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS 2017-01-02 19:03:01 +00:00
lib MFV 312999: 2017-01-30 23:00:51 +00:00
libexec Remove a duplicate store when performing REL32 relocations in rtld. 2017-01-30 23:13:41 +00:00
release Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
rescue Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
sbin MFV r312970: 2017-01-30 16:32:53 +00:00
secure Merge OpenSSL 1.0.2k. 2017-01-26 19:10:29 +00:00
share Man page update to go along with r312907. 2017-01-30 02:25:55 +00:00
sys calculate_crc32c: Add SSE4.2 implementation on x86 2017-01-31 03:26:32 +00:00
targets Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
tests calculate_crc32c: Add SSE4.2 implementation on x86 2017-01-31 03:26:32 +00:00
tools Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
usr.bin Update MACHINE/MACHINE_ARCH examples to use arm64/aarch64 instead of i386/pc98 2017-01-29 00:24:34 +00:00
usr.sbin Garbage collect IFT_IEEE80211 (but leave the define for possible reuse) 2017-01-28 17:08:40 +00:00
.arcconfig callsign isn't required anymore 2016-09-29 06:19:45 +00:00
.arclint
COPYRIGHT Bump copyright year. 2016-12-31 12:41:42 +00:00
LOCKS
MAINTAINERS Remove myself from kern_timeout.c yeah! 2016-07-27 20:37:32 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc1 Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.libcompat Use cross-NM (XNM) in compat32 build 2017-01-27 03:43:18 +00:00
ObsoleteFiles.inc - Remove i8255.h because it's pc98 device. 2017-01-29 03:34:49 +00:00
README README: remove nonexistent 'games' directory. 2016-05-18 10:43:13 +00:00
UPDATING Rename LLD_AS_LD to LLD_IS_LD, for consistency with CLANG_IS_CC 2017-01-27 01:59:12 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html