David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_STRING_H_ |
| 7 | #define _ASM_STRING_H_ |
| 8 | |
| 9 | #ifdef __KERNEL__ |
| 10 | #define __HAVE_ARCH_MEMCPY |
| 11 | extern void *memcpy(void *__to, __const__ void *__from, size_t __n); |
| 12 | |
| 13 | /* ToDo: use dczeroa, accelerate the compiler-constant zero case */ |
| 14 | #define __HAVE_ARCH_MEMSET |
| 15 | extern void *memset(void *__to, int c, size_t __n); |
| 16 | #endif |
| 17 | |
| 18 | |
| 19 | #endif /* _ASM_STRING_H_ */ |