blob: 1fbe899aaa82c90df1a51d7e2f452cafba4f50d8 [file] [log] [blame]
Shinya Kuribayashi89fded82007-08-31 14:41:45 +09001/*
Shinya Kuribayashi89fded82007-08-31 14:41:45 +09002 * 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.
Daniel Schwierzecka5186532016-01-12 21:48:27 +01005 *
6 * SPDX-License-Identifier: GPL-2.0
Shinya Kuribayashi89fded82007-08-31 14:41:45 +09007 */
8#ifndef _ASM_STRING_H
9#define _ASM_STRING_H
10
Shinya Kuribayashi89fded82007-08-31 14:41:45 +090011/*
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090012 * We don't do inline string functions, since the
13 * optimised inline asm versions are not small.
wdenk4fc95692003-02-28 00:49:47 +000014 */
wdenk4fc95692003-02-28 00:49:47 +000015
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090016#undef __HAVE_ARCH_STRCPY
17extern char *strcpy(char *__dest, __const__ char *__src);
wdenk4fc95692003-02-28 00:49:47 +000018
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090019#undef __HAVE_ARCH_STRNCPY
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020020extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000021
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090022#undef __HAVE_ARCH_STRCMP
23extern int strcmp(__const__ char *__cs, __const__ char *__ct);
wdenk4fc95692003-02-28 00:49:47 +000024
Shinya Kuribayashi20f3e1e2007-08-31 14:41:51 +090025#undef __HAVE_ARCH_STRNCMP
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020026extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
wdenk4fc95692003-02-28 00:49:47 +000027
28#undef __HAVE_ARCH_MEMSET
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020029extern void *memset(void *__s, int __c, __kernel_size_t __count);
wdenk4fc95692003-02-28 00:49:47 +000030
31#undef __HAVE_ARCH_MEMCPY
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020032extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000033
34#undef __HAVE_ARCH_MEMMOVE
Jean-Christophe PLAGNIOL-VILLARD24ed11e2007-10-21 09:14:28 +020035extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
wdenk4fc95692003-02-28 00:49:47 +000036
Shinya Kuribayashi89fded82007-08-31 14:41:45 +090037#endif /* _ASM_STRING_H */