Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

implicit.c 826B

1234567891011121314151617181920212223242526
  1. /** @file
  2. *
  3. * gcc sometimes likes to insert implicit calls to memcpy() and
  4. * memset(). Unfortunately, there doesn't seem to be any way to
  5. * prevent it from doing this, or to force it to use the optimised
  6. * versions as seen by C code; it insists on inserting symbol
  7. * references to "memcpy" and "memset". We therefore include wrapper
  8. * functions just to keep gcc happy.
  9. *
  10. */
  11. #include <string.h>
  12. void * gcc_implicit_memcpy ( void *dest, const void *src,
  13. size_t len ) asm ( "memcpy" );
  14. void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) {
  15. return memcpy ( dest, src, len );
  16. }
  17. void * gcc_implicit_memset ( void *dest, int character,
  18. size_t len ) asm ( "memset" );
  19. void * gcc_implicit_memset ( void *dest, int character, size_t len ) {
  20. return memset ( dest, character, len );
  21. }