Re: [PATCH] drivers/sbus/char: Micro-optimization in display7seg.c

2014-07-21 Thread David Miller
From: Rasmus Villemoes Date: Thu, 19 Jun 2014 14:31:52 +0200 > Flipping a bit doesn't need four lines of code; and gcc seems to > actually generate two branches. > > Signed-off-by: Rasmus Villemoes Applied to sparc-next -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH] drivers/sbus/char: Micro-optimization in display7seg.c

2014-06-19 Thread Rasmus Villemoes
Flipping a bit doesn't need four lines of code; and gcc seems to actually generate two branches. Signed-off-by: Rasmus Villemoes --- drivers/sbus/char/display7seg.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display