1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* $Id: memset.S,v 1.1 2000/04/14 16:49:01 mjd Exp $
4 * "memset" implementation of SuperH
6 * Copyright (C) 1999 Niibe Yutaka
11 * void *memset(void *s, int c, size_t n);
14 #include <linux/linkage.h>
18 bt/s 5f ! if n=0, do nothing
22 bt/s 4f ! if it's too small, set a byte at once
26 bt/s 2f ! It's aligned
41 shlr r0 ! r0 = r6 >> 3
44 mov.l r5,@-r4 ! set 8-byte at once