projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de149cd
)
(memmove): Add prototypes. (MALLOC_MEMMOVE): Define. (chunk_realloc): Use it instead...
author
Ulrich Drepper
<drepper@redhat.com>
Wed, 27 Dec 2000 23:27:22 +0000
(23:27 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Wed, 27 Dec 2000 23:27:22 +0000
(23:27 +0000)
malloc/malloc.c
patch
|
blob
|
history
diff --git
a/malloc/malloc.c
b/malloc/malloc.c
index
2eb9c55
..
187c814
100644
(file)
--- a/
malloc/malloc.c
+++ b/
malloc/malloc.c
@@
-415,9
+415,11
@@
extern "C" {
#if __STD_C
void* memset(void*, int, size_t);
void* memcpy(void*, const void*, size_t);
+void* memmove(void*, const void*, size_t);
#else
Void_t* memset();
Void_t* memcpy();
+Void_t* memmove();
#endif
#endif
@@
-462,6
+464,9
@@
do { \
} else memcpy(dest, src, mcsz); \
} while(0)
+#define MALLOC_MEMMOVE(dest,src,nbytes) \
+ memmove(dest, src, mcsz)
+
#else /* !USE_MEMCPY */
/* Use Duff's device for good zeroing/copying performance. */