[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
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. > > > >

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Daniel Vetter
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

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
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. Dan

Re: [PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
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. > > > >

Re: [PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Daniel Vetter
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

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-11-12 Thread Jean Delvare
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. Dan

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-09-03 Thread Jean Delvare
From: Jean Delvare Subject: drm/i915: Optimize DIV_ROUND_CLOSEST call DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing with unsigned dividends. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Andrew Morton Cc: Daniel Vetter Cc: David Airlie --- Daniel, I think we

[PATCH] drm/i915: Optimize DIV_ROUND_CLOSEST call

2012-09-03 Thread Jean Delvare
From: Jean Delvare Subject: drm/i915: Optimize DIV_ROUND_CLOSEST call DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing with unsigned dividends. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Andrew Morton Cc: Daniel Vetter Cc: David Airlie --- Daniel, I think we