/* $NetBSD: bcmp.S,v 1.2 1997/05/08 13:38:46 matthias Exp $ */ /* * Written by Matthias Pfaller, 1996 * Public domain. */ #include #if defined(LIBC_SCCS) RCSID("$NetBSD: bcmp.S,v 1.2 1997/05/08 13:38:46 matthias Exp $") #endif /* * int * bcmp (const void *b1, const void *b2, size_t len) */ ENTRY(bcmp) enter [],0 movd B_ARG2,r0 movd B_ARG0,r1 movd B_ARG1,r2 lshd -2,r0 cmpsd bne 0f movqd 3,r0 andd B_ARG2,r0 cmpsb 0: exit [] ret 0