[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Make condition variables take absolute wakeup time
> These days, does hz >> 2 ever generate better code than hz / 4?
<kernel.h> says hz is signed, so, if shifts are faster than divides, I
would expect >>2 to be faster than /4. If the hardware doesn't have a
signed-integer divide but does have shifts (eg, least common
denominator sparc32), >>2 should be smaller than /4 too.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents.montreal.qc.ca@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Main Index |
Thread Index |