NetBSD/lib/libc/arch/ns32k/string/ffs.S

20 lines
276 B
ArmAsm
Raw Normal View History

/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: ffs.S,v 1.1 1996/09/24 09:29:55 matthias Exp $")
#endif
ENTRY(ffs)
enter [],0
movqd 0,r0
ffsd B_ARG0,r0
bfs 1f
addqd 1,r0
1: exit []
ret 0