[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071221.014925.232771542.davem@davemloft.net>
Date: Fri, 21 Dec 2007 01:49:25 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [INET] Avoid an integer divide in rt_garbage_collect()
From: Eric Dumazet <dada1@...mosbay.com>
Date: Fri, 21 Dec 2007 09:20:50 +0100
> Since 'goal' is a signed int, compiler may emit an integer divide
> to compute goal/2.
>
> Using a right shift is OK here and less expensive.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists