PERFORCE change 100749 for review

Wojciech A. Koszek wkoszek at FreeBSD.org
Thu Jul 6 13:28:36 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100749

Change 100749 by wkoszek at 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.


More information about the p4-projects mailing list