ZERO_REGION_SIZE

Warner Losh imp at bsdimp.com
Thu Nov 15 21:07:35 UTC 2012


On Nov 15, 2012, at 1:13 PM, Alan Cox wrote:
> P.S. I would encourage someone with hardware to look into implementing a
> non-iterative ffs*() using (d)clz.  The MIPS pmap would benefit from
> this.  Basically, most pmap_enter() calls are doing an ffs*().

ffs finds the first bit set. clz counts the number of leading zeros and thus finds the last bit set.  Would a non-iterative fls* be helpful?

Warner



More information about the freebsd-mips mailing list