On Mon, Oct 29, 2007 at 05:23:10PM -0400, Hideo AOKI wrote: > > +#define SK_DATAGRAM_MEM_QUANTUM ((int)PAGE_SIZE) > + > +static inline int sk_datagram_pages(int amt) > +{ > + return DIV_ROUND_UP(amt, SK_DATAGRAM_MEM_QUANTUM); > +}
Does this really have to be int? Unsigned would let the compiler optimise this to a simple shift. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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