FreeBSD src
Go to file
Robert Clausecker 8803f01e93 lib/libc/amd64/string/memcmp.S: add baseline implementation
This changeset adds a baseline implementation of memcmp and bcmp
for amd64. The same code is used for both functions with conditional
code were the behaviour differs (we need more precise output for the
memcmp case).

FreeBSD documents that memcmp returns the difference between the
mismatching characters. Slightly faster code would be possible could
we relax this requirement to the ISO/IEC 9899:1999 requirement of
merely returning a negative/positive integer or zero.

Performance is better than bionic and glibc, except for long strings
were the two are 13% faster. This could be because they use SSE4
ptest which we cannot use in a baseline kernel.

Sponsored by:	The FreeBSD Foundation
Approved by:	mjg
Differential Revision:	https://reviews.freebsd.org/D41442
2023-08-21 21:19:46 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin Use proper convention for relative path linking 2023-08-18 04:20:32 -07:00
cddl Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
contrib unifdef: Reapply our 7102ec5226. 2023-08-21 19:52:25 +02:00
crypto ssh: fix OpenSSH 9.4 regression with multiplexed sessions 2023-08-20 15:20:49 -04:00
etc Remove confDH_PARAMETERS settings in favor of using sendmail's built-in 2023-08-18 00:32:56 +00:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
include Remove $FreeBSD$: one-line xdr pattern 2023-08-16 11:55:47 -06:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lib lib/libc/amd64/string/memcmp.S: add baseline implementation 2023-08-21 21:19:46 +02:00
libexec rtld: switch from malloc_aligned() to __crt_aligned_alloc() 2023-08-21 17:16:42 +03:00
release Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
rescue Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
sbin Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
secure libcrypto: add rsa_depr.c to the build 2023-08-18 16:15:48 -04:00
share share/man/man7/simd.7: document SIMD-enhanced stpcpy() 2023-08-21 21:04:07 +02:00
stand Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
sys pctrie: change for vm_radix compatibility 2023-08-21 12:28:51 -05:00
targets Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests Import unifdef 2.12 2023-08-21 19:33:42 +02:00
tools stress2: No need to write to the console. Add revision to log string 2023-08-19 09:29:09 +02:00
usr.bin unifdef: Vendorize. 2023-08-21 19:52:27 +02:00
usr.sbin unbound: Move config.h to lib directory. 2023-08-19 01:44:58 +00:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: restore amd64-gcc12 build/test on main 2023-08-18 22:35:39 -04:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore Import unifdef 2.11 2023-08-21 19:33:26 +02:00
CONTRIBUTING.md CONTRIBUTING.md: reinsert double spaces 2023-07-10 12:24:24 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Import unifdef 2.11 2023-08-21 19:33:26 +02:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.libcompat Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc Fix GoogleTest 1.14.0 import 2023-08-18 19:33:58 -07:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: Clarify package building on older branches for 32-bit. 2023-08-17 14:25:44 -07:00
UPDATING UPDATING: fix a typo, adjust a white space 2023-08-18 17:55:25 +01:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

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), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
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 Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB 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.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
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 FreeBSD Handbook.