您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

memcpy.c 586B

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. }