From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call Date: Mon, 12 Nov 2012 15:02:26 +0100 Message-ID: <20121112140225.GN5854@phenom.ffwll.local> References: <20121112141802.6326e589@endymion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id AC1D19F030 for ; Mon, 12 Nov 2012 06:01:11 -0800 (PST) Received: by mail-ee0-f49.google.com with SMTP id c1so3409874eek.36 for ; Mon, 12 Nov 2012 06:01:10 -0800 (PST) Content-Disposition: inline In-Reply-To: <20121112141802.6326e589@endymion.delvare> 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: Jean Delvare Cc: Daniel Vetter , Andrew Morton , Guenter Roeck , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch