1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/types.h>
6 void *memset(void *dest
, int c
, size_t l
)
10 int tmp
= (ch
| ch
<< 8 | ch
<< 16 | ch
<< 24);
12 while (((uintptr_t)d
& 0x3) && l
--)
17 *(((u32
*)d
)+1) = tmp
;
18 *(((u32
*)d
)+2) = tmp
;
19 *(((u32
*)d
)+3) = tmp
;