1/* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 */ 6 7#ifndef lint 8 .asciz "@(#)bcmp.s 5.2 (Berkeley) 06/05/85" 9#endif not lint 10 11/* bcmp(s1, s2, n) */ 12 13#include "DEFS.h" 14 15ENTRY(bcmp, 0) 16 movl 4(ap),r1 17 movl 8(ap),r3 18 movl 12(ap),r4 191: 20 movzwl $65535,r0 21 cmpl r4,r0 22 jleq 2f 23 subl2 r0,r4 24 cmpc3 r0,(r1),(r3) 25 jeql 1b 26 addl2 r4,r0 27 ret 282: 29 cmpc3 r4,(r1),(r3) 30 ret 31