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
F151756885: D17539.id49074.diff
Fri, Apr 10, 11:27 AM
Unknown Object (File)
Thu, Apr 9, 6:22 PM
Unknown Object (File)
Thu, Apr 9, 6:21 PM
Unknown Object (File)
Tue, Apr 7, 6:08 AM
Unknown Object (File)
Sat, Apr 4, 11:52 AM
Unknown Object (File)
Sun, Mar 29, 1:23 PM
Unknown Object (File)
Sun, Mar 29, 10:57 AM
Unknown Object (File)
Sun, Mar 29, 2:31 AM
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

Event Timeline

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

Please change to __FBSDID

9

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.