blob: faceaf91ec6a039085ea1895a12a55fba5c66e39 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +09002/*
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +09003 * 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.
wdenk6069ff22003-02-28 00:49:47 +00006 */
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +09007#ifndef _ASM_STRING_H
8#define _ASM_STRING_H
wdenk6069ff22003-02-28 00:49:47 +00009
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +090010/*
Shinya Kuribayashib4d8a552007-08-31 14:41:51 +090011 * We don't do inline string functions, since the
12 * optimised inline asm versions are not small.
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +090013 */
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +090014
Shinya Kuribayashib4d8a552007-08-31 14:41:51 +090015#undef __HAVE_ARCH_STRCPY
16extern char *strcpy(char *__dest, __const__ char *__src);
wdenk6069ff22003-02-28 00:49:47 +000017
Shinya Kuribayashib4d8a552007-08-31 14:41:51 +090018#undef __HAVE_ARCH_STRNCPY
Jean-Christophe PLAGNIOL-VILLARD7b0a4222007-10-21 09:14:28 +020019extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
wdenk6069ff22003-02-28 00:49:47 +000020
Shinya Kuribayashib4d8a552007-08-31 14:41:51 +090021#undef __HAVE_ARCH_STRCMP
22extern int strcmp(__const__ char *__cs, __const__ char *__ct);
wdenk6069ff22003-02-28 00:49:47 +000023
Shinya Kuribayashib4d8a552007-08-31 14:41:51 +090024#undef __HAVE_ARCH_STRNCMP
Jean-Christophe PLAGNIOL-VILLARD7b0a4222007-10-21 09:14:28 +020025extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
wdenk6069ff22003-02-28 00:49:47 +000026
27#undef __HAVE_ARCH_MEMSET
Jean-Christophe PLAGNIOL-VILLARD7b0a4222007-10-21 09:14:28 +020028extern void *memset(void *__s, int __c, __kernel_size_t __count);
wdenk6069ff22003-02-28 00:49:47 +000029
30#undef __HAVE_ARCH_MEMCPY
Jean-Christophe PLAGNIOL-VILLARD7b0a4222007-10-21 09:14:28 +020031extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
wdenk6069ff22003-02-28 00:49:47 +000032
33#undef __HAVE_ARCH_MEMMOVE
Jean-Christophe PLAGNIOL-VILLARD7b0a4222007-10-21 09:14:28 +020034extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
wdenk6069ff22003-02-28 00:49:47 +000035
Shinya Kuribayashi8ea2c4e2007-08-31 14:41:45 +090036#endif /* _ASM_STRING_H */