]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: convert libc bcopy to a C func to avoid future bloat
authorMateusz Guzik <mjg@FreeBSD.org>
Sat, 13 Oct 2018 21:17:28 +0000 (21:17 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sat, 13 Oct 2018 21:17:28 +0000 (21:17 +0000)
commit9c7d70ee7d49cbc6b834ec0f6f606e7916dc4cd9
treee3b60450f02e515be0bf3e7a90445cfc866b6e49
parent1e52ba8c621d8c9e40815fa6e1f28207e35e3877
amd64: convert libc bcopy to a C func to avoid future bloat

The function is of limited use and is an almost a direct clone of
memmove/memcpy (with arguments swapped). Introduction of ERMS variants
of string routines would mean avoidable growth of libc.

bcopy will get redefined to a __builtin_memmove later on with this
symbol only left for compatibility.

Reviewed by: kib
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17539
lib/libc/amd64/string/Makefile.inc
lib/libc/amd64/string/bcopy.S [deleted file]
lib/libc/amd64/string/bcopy.c [new file with mode: 0644]