On Thu, Jun 02, 2005 at 01:52:55PM +0100, Nicholas Clark wrote:
> len = ((len-1) & ~3) + 4)
> 
> I can't spot an obvious way to do that calculation in less arithmetic
> operations. I'm counting ~3 as a constant, so I make it 3 at the moment.

    len = (len+3) & ~3

-- 
Red sky at night - gerroff my land!
Red sky at morning - gerroff my land!
    -- old farmers' sayings #14

Reply via email to