[misc] Remove accidentally commited .dotest directory
[gpxe.git] / src / libgcc / memcpy.c
blobe98b7838438184f62b1609b9ef2f3f5862574375
1 /** @file
3 * gcc sometimes likes to insert implicit calls to memcpy().
4 * Unfortunately, there doesn't seem to be any way to prevent it from
5 * doing this, or to force it to use the optimised memcpy() as seen by
6 * C code; it insists on inserting a symbol reference to "memcpy". We
7 * therefore include wrapper functions just to keep gcc happy.
9 */
11 #include <string.h>
13 void * gcc_implicit_memcpy ( void *dest, const void *src,
14 size_t len ) asm ( "memcpy" );
16 void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) {
17 return memcpy ( dest, src, len );