[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call
Daniel Vetter
daniel at ffwll.ch
Mon Nov 12 06:02:26 PST 2012
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 <khali at linux-fr.org>
> Cc: Guenter Roeck <linux at roeck-us.net>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: David Airlie <airlied at linux.ie>
> ---
> 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
More information about the dri-devel
mailing list