From be1980eb516225384bfea4862a11c176aa7804b6 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Wed, 4 Nov 2009 22:11:07 -0800 Subject: [PATCH] hdt: optimize more_printf macro disable_more_printf should be set only in auto mode (for now). Add __likely macro to optimize the code. Signed-off-by: Pierre-Alexandre Meyer --- com32/hdt/hdt-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/hdt/hdt-common.h b/com32/hdt/hdt-common.h index 0e7f122..f37a4fe 100644 --- a/com32/hdt/hdt-common.h +++ b/com32/hdt/hdt-common.h @@ -80,7 +80,7 @@ extern bool disable_more_printf; * one \n (and only one) */ #define more_printf(...) do {\ - if (!disable_more_printf) {\ + if (__likely(!disable_more_printf)) {\ if (display_line_nb == 20) {\ display_line_nb=0;\ printf("\n--More--");\ -- 2.7.4