Skip to content

Commit

Permalink
Rather than using a C implementation of memmove, directly call memmov…
Browse files Browse the repository at this point in the history
…e, which

typically has a much faster optimized implementation.
  • Loading branch information
Wilco Dijkstra committed Feb 27, 2015
1 parent ddcf679 commit af96be3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-02-27 Wilco Dijkstra wdijkstr@arm.com

* string/bcopy.c (bcopy): Call memmove for performance.

2015-02-27 Wilco Dijkstra wdijkstr@arm.com

* string/bzero.c (__bzero): Call memset for performance.
Expand Down
14 changes: 5 additions & 9 deletions string/bcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@

#include <string.h>

#define memmove bcopy
#define rettype void
#define RETURN(s) return
#define a1 src
#define a1const const
#define a2 dest
#define a2const

#include <string/memmove.c>
void
bcopy (const void *src, void *dest, size_t len)
{
memmove (dest, src, len);
}

0 comments on commit af96be3

Please sign in to comment.