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 8static char sccsid[] = "@(#)ffs.s 5.1 (Berkeley) 05/30/85"; 9#endif not lint 10 11/* bit = ffs(value) */ 12 13#include "DEFS.h" 14 15ENTRY(ffs, 0) 16 ffs $0,$32,4(ap),r0 17 bneq 1f 18 mnegl $1,r0 191: 20 incl r0 21 ret 22