string.h 994 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * linux/arch/unicore32/include/asm/string.h
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __UNICORE_STRING_H__
  13. #define __UNICORE_STRING_H__
  14. /*
  15. * We don't do inline string functions, since the
  16. * optimised inline asm versions are not small.
  17. */
  18. #define __HAVE_ARCH_STRRCHR
  19. extern char *strrchr(const char *s, int c);
  20. #define __HAVE_ARCH_STRCHR
  21. extern char *strchr(const char *s, int c);
  22. #define __HAVE_ARCH_MEMCPY
  23. extern void *memcpy(void *, const void *, __kernel_size_t);
  24. #define __HAVE_ARCH_MEMMOVE
  25. extern void *memmove(void *, const void *, __kernel_size_t);
  26. #define __HAVE_ARCH_MEMCHR
  27. extern void *memchr(const void *, int, __kernel_size_t);
  28. #define __HAVE_ARCH_MEMSET
  29. extern void *memset(void *, int, __kernel_size_t);
  30. #endif