1 // SPDX-License-Identifier: GPL-2.0
3 * arch/mips/boot/compressed/string.c
5 * Very small subset of simple string routines
8 #include <linux/compiler_attributes.h>
9 #include <linux/types.h>
11 void *memcpy(void *dest
, const void *src
, size_t n
)
17 for (i
= 0; i
< n
; i
++)
22 void *memset(void *s
, int c
, size_t n
)
27 for (i
= 0; i
< n
; i
++)
32 void * __weak
memmove(void *dest
, const void *src
, size_t n
)
38 if ((uintptr_t)dest
< (uintptr_t)src
) {
39 for (i
= 0; i
< n
; i
++)
42 for (i
= n
; i
> 0; i
--)