1// SPDX-License-Identifier: GPL-2.0
2#include <linux/string.h>
3#include <linux/export.h>
4
5#undef memcpy
6#undef memset
7#undef memmove
8
9__visible void *memcpy(void *to, const void *from, size_t n)
10{
11 return __memcpy(to, from, len: n);
12}
13EXPORT_SYMBOL(memcpy);
14
15__visible void *memset(void *s, int c, size_t count)
16{
17 return __memset(s, c, n: count);
18}
19EXPORT_SYMBOL(memset);
20

source code of linux/arch/x86/lib/memcpy_32.c