Mike Harrold wrote: > Be careful. *4 is not a simple <<2 substitution (by the compiler) if > the variable is signed. *4 translates to 3 instructions (on x86) if > it's an int. I think you mean /4 is not the same as >>2 if the variable is signed. In general, non-widening multiplies give the same result for signed and unsigned variables. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- * 4 converted to << 2 for networking code antirez
- Re: * 4 converted to << 2 for networking code Brian Gerst
- Re: * 4 converted to << 2 for networking ... antirez
- Re: * 4 converted to << 2 for network... Jakob Østergaard
- Re: * 4 converted to << 2 for net... Mike Harrold
- Re: * 4 converted to << 2 fo... Chris Jones
- Re: * 4 converted to << 2 fo... Jamie Lokier
- Re: * 4 converted to << 2 for net... antirez
- Re: * 4 converted to << 2 fo... Pauline Middelink
- Re: * 4 converted to << 2 for net... H. Peter Anvin
- Re: * 4 converted to << 2 for networking code David S. Miller
- Re: * 4 converted to << 2 for networking code Matthias Andree