1 /* $Id: memset.S,v 1.1 2000/04/14 16:49:01 mjd Exp $
3 * "memset" implementation of SuperH
5 * Copyright (C) 1999 Niibe Yutaka
10 * void *memset(void *s, int c, size_t n);
17 bt/s 5f ! if n=0, do nothing
21 bt/s 4f ! if it's too small, set a byte at once
25 bt/s 2f ! It's aligned
40 shlr r0 ! r0 = r6 >> 3
43 mov.l r5,@-r4 ! set 8-byte at once