opnsense-src/tests/sys
Conrad Meyer 6be2ff7d3e 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
..
acl Expect 01:main to fail 2016-12-03 02:24:15 +00:00
aio Fix build of aio_test on MIPS, where the compiler warns about the local 2017-01-28 12:26:22 +00:00
fifo Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
file Remove unused vars to fix -Wunused issues 2017-01-14 04:10:04 +00:00
fs Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
geom ATFify the geom gate tests. 2017-01-10 20:35:09 +00:00
kern calculate_crc32c: Add SSE4.2 implementation on x86 2017-01-31 03:26:32 +00:00
kqueue Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
mac Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:29:26 +00:00
mqueue Export the mq_getfd_np() symbol from librt.so, which allows to get 2016-10-02 17:02:59 +00:00
netinet On FreeBSD there is a setsockopt option SO_USER_COOKIE which allows 2016-07-08 23:44:09 +00:00
opencrypto Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
pjdfstest DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
posixshm Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vfs Mark testcases which use cap_enter as expected failures until the 2017-01-15 09:13:41 +00:00
vm Fix -Wsign-compare warnings 2017-01-14 04:09:01 +00:00
Makefile Integrate contrib/netbsd-tests/fs/tmpfs into the FreeBSD test suite 2016-10-21 05:24:08 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Enable WARNS?= 6 across all of tests/sys 2017-01-14 04:20:06 +00:00