xref: /openbmc/u-boot/arch/mips/include/asm/string.h (revision 8a23fc9c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 1994, 95, 96, 97, 98, 2000, 01 Ralf Baechle
4  * Copyright (c) 2000 by Silicon Graphics, Inc.
5  * Copyright (c) 2001 MIPS Technologies, Inc.
6  */
7 #ifndef _ASM_STRING_H
8 #define _ASM_STRING_H
9 
10 /*
11  * We don't do inline string functions, since the
12  * optimised inline asm versions are not small.
13  */
14 
15 #undef __HAVE_ARCH_STRCPY
16 extern char *strcpy(char *__dest, __const__ char *__src);
17 
18 #undef __HAVE_ARCH_STRNCPY
19 extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
20 
21 #undef __HAVE_ARCH_STRCMP
22 extern int strcmp(__const__ char *__cs, __const__ char *__ct);
23 
24 #undef __HAVE_ARCH_STRNCMP
25 extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
26 
27 #undef __HAVE_ARCH_MEMSET
28 extern void *memset(void *__s, int __c, __kernel_size_t __count);
29 
30 #undef __HAVE_ARCH_MEMCPY
31 extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
32 
33 #undef __HAVE_ARCH_MEMMOVE
34 extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
35 
36 #endif /* _ASM_STRING_H */
37