From: Jean Delvare Subject: Re: [PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call Date: Mon, 12 Nov 2012 15:12:09 +0100 Message-ID: <20121112151209.1bdcfe17@endymion.delvare> References: <20121112141802.6326e589@endymion.delvare> <20121112140225.GN5854@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from services.gcu-squad.org (zoneX.GCU-Squad.org [194.213.125.0]) by gabe.freedesktop.org (Postfix) with ESMTP id D03879F0E3 for ; Mon, 12 Nov 2012 06:12:16 -0800 (PST) In-Reply-To: <20121112140225.GN5854@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: Daniel Vetter , Andrew Morton , Guenter Roeck , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, 12 Nov 2012 15:02:26 +0100, Daniel Vetter wrote: > On Mon, Nov 12, 2012 at 02:18:02PM +0100, Jean Delvare wrote: > > DIV_ROUND_CLOSEST is faster if the compiler knows it will only be > > dealing with unsigned dividends. This optimization rips 32 bytes of > > binary code on x86_64. > > > > Signed-off-by: Jean Delvare > > Cc: Guenter Roeck > > Cc: Andrew Morton > > Cc: Daniel Vetter > > Cc: David Airlie > > --- > > Already sent on: 2012-09-03. > > > > Daniel, I think we can safely assume ia_freq can't be negative? > > Queued for -next, thanks for the patch. Sorry that I've missed it on first > submission. No problem, thanks :) -- Jean Delvare