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