Date: Thu, 6 Jul 2006 13:28:35 GMT From: "Wojciech A. Koszek" <wkoszek@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100749 for review Message-ID: <200607061328.k66DSZuR084063@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100749 Change 100749 by wkoszek@wkoszek_laptop on 2006/07/06 13:27:39 Change hardware accelerated version of "Find First bit Set" function to the universal one - ffs(). Affected files ... .. //depot/projects/mips2/src/sys/mips/include/runq.h#2 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/runq.h#2 (text+ko) ==== @@ -35,8 +35,10 @@ #define RQB_BIT(pri) (1ul << ((pri) & (RQB_BPW - 1))) #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) - -#define RQB_FFS(word) (bsfq(word)) +/* + * XXXMIPS: Find first bit set. Change later to hardware supported version. + */ +#define RQB_FFS(word) (ffs(word) - 1) /* * Type of run queue status word.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607061328.k66DSZuR084063>