Hi, On Fri, Feb 03, 2006 at 03:28:29PM +0200, Denis Vlasenko wrote: > On Friday 03 February 2006 14:39, Denis Vlasenko wrote: > > Well, gcc obviously failed to realize that "% 16" == "& 15". > > I'll file a bug. > > -ENOTABUG. It's incorrect for signed integers, > and gcc uses idiv insn instead.
...which is one of the performance reasons why it may be a good idea to use unsigned ints wherever signedness isn't required (unsigned int is said to be faster sometimes, on many platforms). Andreas Mohr - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html