History log of /freebsd-current/lib/libc/amd64/string/stpcpy.S
Revision Date Author Comments
# 9fbea870 05-Jul-2023 Robert Clausecker <fuz@FreeBSD.org>

lib/libc/amd64/string/stpcpy.S: add baseline implementation

This commit adds a baseline implementation of stpcpy(3) for amd64.
It performs quite well in comparison to the previous scalar implementation
as well as agains bionic and glibc (though glibc is faster for very long
strings). Fiddle with the Makefile to also have strcpy(3) call into the
optimised stpcpy(3) code, fixing an oversight from D9841.

Sponsored by: The FreeBSD Foundation
Reviewed by: imp ngie emaste
Approved by: mjg kib
Fixes: D9841
Differential Revision: https://reviews.freebsd.org/D41349


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# a388fa68 21-Jul-2011 George V. Neville-Neil <gnn@FreeBSD.org>

Remove incorrect attribution.

Approved by: re (kib)
Pointed out by: brueffer
Pointy hat to: gnn


# c03b5ad6 21-Jul-2011 George V. Neville-Neil <gnn@FreeBSD.org>

Make both stpcpy and strcpy be assembly language implementations
on amd64.

Submitted by: Guillaume Morin (guillaume at morinfr.org)
Reviewed by: kib, jhb
Approved by: re (bz)
MFC after: 1 month