[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] question on the use of fs in evtchn.c



On Tue, 10 Aug 2004, Christian Limpach wrote:

> 
> > In the plan 9 port this is:
> >        while ( (l1i = ffs(l1)) > 0 )
> 
> If your ffs indeed returns -1 if l1 is 0, shouldn't your test be >= 0?
> Or does it never return 0?

no, this began as my misreading of how ffs worked (I thought it worked 
like the x86 instruction but it is 1, not 0- based) and proceeded to 
further errors on my part :-)

sorry!

ron

-- 
LANL CCS-1 email flavor:
***** Correspondence   [X]
***** DUSA LACSI-HW    [ ]
***** DUSA LACSI-OS    [ ]
***** DUSA LACSI-CS    [ ]




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.