1/* $NetBSD: ffs.c,v 1.1 2014/09/19 17:36:24 matt Exp $ */ 2 3#include <sys/cdefs.h> 4 5__strong_alias(ffs, __ffssi2); 6int __ffssi2(int); 7 8int 9__ffssi2(int i) 10{ 11 return i == 0 ? 0 : __buildint_ctz(i) + 1; 12} 13