mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 23:30:07 +00:00
powerpc: Simplify bcopy default implementation
This patch simplify the default bcopy symbol for powerpc64 by just using memmove instead of implementing using the default bcopy. Since the symbol is deprecated, it trades speed by code size.
This commit is contained in:
parent
3001e54c57
commit
6f0993a638
@ -1,5 +1,9 @@
|
||||
2015-02-09 Adhemerval Zanellla <azanella@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
|
||||
Rewrite to call __memmove_ppc instead of include default
|
||||
implementation.
|
||||
|
||||
* sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
|
||||
Remove wide chars objects.
|
||||
[wcsmbs]: New rule for wide char objects.
|
||||
|
@ -19,7 +19,9 @@
|
||||
#include <string.h>
|
||||
|
||||
extern __typeof (bcopy) __bcopy_ppc attribute_hidden;
|
||||
extern __typeof (memmove) __memmove_ppc attribute_hidden;
|
||||
|
||||
#define bcopy __bcopy_ppc
|
||||
|
||||
#include <string/bcopy.c>
|
||||
void __bcopy_ppc (const void *src, void *dest, size_t n)
|
||||
{
|
||||
__memmove_ppc (dest, src, n);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user