/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and that due credit is given * to the University of California at Berkeley. The name of the University * may not be used to endorse or promote products derived from this * software without specific written prior permission. This software * is provided ``as is'' without express or implied warranty. */ #if defined(SYSLIBC_SCCS) && !defined(lint) _sccsid:.asciz "@(#)bzero.s 5.4 (Berkeley) 05/25/88" #endif /* SYSLIBC_SCCS and not lint */ /* bzero(base, length) */ #include "DEFS.h" ENTRY(bzero, 0) movl 4(ap),r3 jbr 2f 1: subl2 r0,8(ap) movc5 $0,(r3),$0,r0,(r3) 2: movzwl $65535,r0 cmpl 8(ap),r0 jgtr 1b movc5 $0,(r3),$0,8(ap),(r3) ret