Home | History | Annotate | Download | only in string

Lines Matching defs:ffs

1 /*	$NetBSD: ffs.S,v 1.3 2013/09/12 15:36:14 joerg Exp $	*/
35 * from: Header: ffs.s,v 1.3 92/07/07 00:23:57 torek Exp
41 .asciz "@(#)ffs.s 8.1 (Berkeley) 6/4/93"
43 RCSID("$NetBSD: ffs.S,v 1.3 2013/09/12 15:36:14 joerg Exp $")
54 * int ffs(unsigned zz) {
61 ENTRY(ffs)
65 movrz %o0, %g0, %o1 ! result of ffs(0) should be zero
70 * ffs returns the number of the rightmost bit set in its argument,
71 * i.e., the lowest value such that (x & (ffs(x) - 1)) is nonzero.
72 * If no bits are set, ffs returns 0.
81 * that ffstab[0] must be -24 so that ffs(0) will return 0.
83 ENTRY(ffs)