Vivek Goyal | 8fc5b4d | 2014-08-08 14:26:02 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Simple string functions. |
| 3 | * |
| 4 | * Copyright (C) 2014 Red Hat Inc. |
| 5 | * |
| 6 | * Author: |
| 7 | * Vivek Goyal <vgoyal@redhat.com> |
| 8 | * |
| 9 | * This source code is licensed under the GNU General Public License, |
| 10 | * Version 2. See the file COPYING for more details. |
| 11 | */ |
| 12 | |
Philipp Rudo | df6f280 | 2018-04-13 15:36:46 -0700 | [diff] [blame^] | 13 | #include <linux/types.h> |
| 14 | |
Vivek Goyal | 8fc5b4d | 2014-08-08 14:26:02 -0700 | [diff] [blame] | 15 | #include "../boot/string.c" |
Philipp Rudo | df6f280 | 2018-04-13 15:36:46 -0700 | [diff] [blame^] | 16 | |
| 17 | void *memcpy(void *dst, const void *src, size_t len) |
| 18 | { |
| 19 | return __builtin_memcpy(dst, src, len); |
| 20 | } |
| 21 | |
| 22 | void *memset(void *dst, int c, size_t len) |
| 23 | { |
| 24 | return __builtin_memset(dst, c, len); |
| 25 | } |