string.h 472 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _ASM_STRING_H_
  6. #define _ASM_STRING_H_
  7. #ifdef __KERNEL__
  8. #define __HAVE_ARCH_MEMCPY
  9. extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
  10. /* ToDo: use dczeroa, accelerate the compiler-constant zero case */
  11. #define __HAVE_ARCH_MEMSET
  12. extern void *memset(void *__to, int c, size_t __n);
  13. #endif
  14. #endif /* _ASM_STRING_H_ */