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