ZERO_REGION_SIZE
Juli Mallett
jmallett at FreeBSD.org
Thu Nov 15 22:03:04 UTC 2012
On Thu, Nov 15, 2012 at 1:07 PM, Warner Losh <imp at bsdimp.com> wrote:
>
> 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?
>
Right. And no widespread ctz/ffs MIPS instructions as far as I know. We
could use pop/dpop on processors that support them to do non-iterative
ffs*, with a few additional instructions, though.
More information about the freebsd-mips
mailing list