142079Sbostic/*- 2*61222Sbostic * Copyright (c) 1990, 1993 3*61222Sbostic * The Regents of the University of California. All rights reserved. 442079Sbostic * 542079Sbostic * %sccs.include.redist.c% 642079Sbostic */ 742079Sbostic 842079Sbostic#if defined(LIBC_SCCS) && !defined(lint) 9*61222Sbostic .asciz "@(#)memset.s 8.1 (Berkeley) 06/04/93" 1042079Sbostic#endif /* LIBC_SCCS and not lint */ 1142079Sbostic 1242079Sbostic/* void *memset(base, c, length) */ 1342079Sbostic 1442079Sbostic#include "DEFS.h" 1542079Sbostic 1642079SbosticENTRY(memset, 0) 1742079Sbostic movl 4(ap),r3 1842079Sbostic1: 1942079Sbostic movzwl $65535,r0 2042079Sbostic movq 8(ap),r1 2142079Sbostic cmpl r2,r0 2242079Sbostic jgtru 2f 2342079Sbostic movc5 $0,(r3),r1,r2,(r3) 2449680Sbostic movl r1,r0 2542079Sbostic ret 2642079Sbostic2: 2742079Sbostic subl2 r0,12(ap) 2842079Sbostic movc5 $0,(r3),r1,r0,(r3) 2942079Sbostic jbr 1b 30