Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 2 | /* |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 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. |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 6 | */ |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 7 | #ifndef _ASM_STRING_H |
| 8 | #define _ASM_STRING_H |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 9 | |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 10 | /* |
Shinya Kuribayashi | b4d8a55 | 2007-08-31 14:41:51 +0900 | [diff] [blame] | 11 | * We don't do inline string functions, since the |
| 12 | * optimised inline asm versions are not small. |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 13 | */ |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 14 | |
Shinya Kuribayashi | b4d8a55 | 2007-08-31 14:41:51 +0900 | [diff] [blame] | 15 | #undef __HAVE_ARCH_STRCPY |
| 16 | extern char *strcpy(char *__dest, __const__ char *__src); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 17 | |
Shinya Kuribayashi | b4d8a55 | 2007-08-31 14:41:51 +0900 | [diff] [blame] | 18 | #undef __HAVE_ARCH_STRNCPY |
Jean-Christophe PLAGNIOL-VILLARD | 7b0a422 | 2007-10-21 09:14:28 +0200 | [diff] [blame] | 19 | extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 20 | |
Shinya Kuribayashi | b4d8a55 | 2007-08-31 14:41:51 +0900 | [diff] [blame] | 21 | #undef __HAVE_ARCH_STRCMP |
| 22 | extern int strcmp(__const__ char *__cs, __const__ char *__ct); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 23 | |
Shinya Kuribayashi | b4d8a55 | 2007-08-31 14:41:51 +0900 | [diff] [blame] | 24 | #undef __HAVE_ARCH_STRNCMP |
Jean-Christophe PLAGNIOL-VILLARD | 7b0a422 | 2007-10-21 09:14:28 +0200 | [diff] [blame] | 25 | extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 26 | |
| 27 | #undef __HAVE_ARCH_MEMSET |
Jean-Christophe PLAGNIOL-VILLARD | 7b0a422 | 2007-10-21 09:14:28 +0200 | [diff] [blame] | 28 | extern void *memset(void *__s, int __c, __kernel_size_t __count); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 29 | |
| 30 | #undef __HAVE_ARCH_MEMCPY |
Jean-Christophe PLAGNIOL-VILLARD | 7b0a422 | 2007-10-21 09:14:28 +0200 | [diff] [blame] | 31 | extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 32 | |
| 33 | #undef __HAVE_ARCH_MEMMOVE |
Jean-Christophe PLAGNIOL-VILLARD | 7b0a422 | 2007-10-21 09:14:28 +0200 | [diff] [blame] | 34 | extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n); |
wdenk | 6069ff2 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 35 | |
Shinya Kuribayashi | 8ea2c4e | 2007-08-31 14:41:45 +0900 | [diff] [blame] | 36 | #endif /* _ASM_STRING_H */ |