Page MenuHomeFreeBSD

amd64: convert libc bcopy to a C func to avoid future bloat
ClosedPublic

Authored by mjg on Oct 12 2018, 8:21 PM.
Tags
None
Referenced Files
F87267277: D17539.diff
Mon, Jul 1, 12:26 AM
Unknown Object (File)
Sat, Jun 29, 12:42 AM
Unknown Object (File)
Fri, Jun 28, 10:33 PM
Unknown Object (File)
Thu, Jun 27, 1:40 PM
Unknown Object (File)
Apr 6 2024, 4:20 AM
Unknown Object (File)
Mar 7 2024, 11:56 PM
Unknown Object (File)
Dec 20 2023, 4:06 AM
Unknown Object (File)
Nov 27 2023, 9:53 PM
Subscribers

Details

Summary

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.

memcpy and memmove are now implemented separately.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 20169

Event Timeline

lib/libc/amd64/string/bcopy.c
4

Please change to __FBSDID

8

string.h includes strings.h.

This revision is now accepted and ready to land.Oct 13 2018, 6:46 PM
This revision was automatically updated to reflect the committed changes.