mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 04:17:58 +07:00
c5af58b769
This patch adds string optimize codes and some auxiliary codes. Signed-off-by: Chen Linfei <linfei_chen@c-sky.com> Signed-off-by: Mao Han <han_mao@c-sky.com> Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
28 lines
699 B
C
28 lines
699 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __ABI_CSKY_STRING_H
|
|
#define __ABI_CSKY_STRING_H
|
|
|
|
#define __HAVE_ARCH_MEMCMP
|
|
extern int memcmp(const void *, const void *, __kernel_size_t);
|
|
|
|
#define __HAVE_ARCH_MEMCPY
|
|
extern void *memcpy(void *, const void *, __kernel_size_t);
|
|
|
|
#define __HAVE_ARCH_MEMMOVE
|
|
extern void *memmove(void *, const void *, __kernel_size_t);
|
|
|
|
#define __HAVE_ARCH_MEMSET
|
|
extern void *memset(void *, int, __kernel_size_t);
|
|
|
|
#define __HAVE_ARCH_STRCMP
|
|
extern int strcmp(const char *, const char *);
|
|
|
|
#define __HAVE_ARCH_STRCPY
|
|
extern char *strcpy(char *, const char *);
|
|
|
|
#define __HAVE_ARCH_STRLEN
|
|
extern __kernel_size_t strlen(const char *);
|
|
|
|
#endif /* __ABI_CSKY_STRING_H */
|