You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. /** @file
  2. *
  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.
  8. *
  9. */
  10. #include <string.h>
  11. void * gcc_implicit_memcpy ( void *dest, const void *src,
  12. size_t len ) asm ( "memcpy" );
  13. void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) {
  14. return memcpy ( dest, src, len );
  15. }