NetBSD/sys/lib/libkern/arch/ns32k/ffs.S
matthias eb8718eafb * Pull up files from lib/libc/arch/ns32/string.
* DEFS.h and setjmp.S are no longer in use.
1996-11-07 07:36:05 +00:00

20 lines
276 B
ArmAsm

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