mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-24 10:52:36 +01:00
Make memmove an alias for memcpy
memcpy was an alias for bcopy with arg swap. This code handles overlapping copies, so making memmove an alias is safe. We can eliminate the call from libkern's memmove to this bcopy as a result. Differential Revision: https://reviews.freebsd.org/D15374
This commit is contained in:
parent
d3f8534e99
commit
49ab568eff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334181
@ -61,7 +61,6 @@ libkern/ffsll.c standard
|
||||
libkern/fls.c standard
|
||||
libkern/flsl.c standard
|
||||
libkern/flsll.c standard
|
||||
libkern/memmove.c standard
|
||||
libkern/cmpdi2.c optional mips | mipshf | mipsel | mipselhf
|
||||
libkern/ucmpdi2.c optional mips | mipshf | mipsel | mipselhf
|
||||
libkern/ashldi3.c standard
|
||||
|
@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
|
||||
#define SIZEREG a2
|
||||
|
||||
LEAF(memcpy)
|
||||
XLEAF(memmove)
|
||||
.set noat
|
||||
.set noreorder
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user