From 50bdff1a4ffe29d6703d51b870c1e1d9fd0f90ae Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 19 Jul 2015 11:04:06 +0200 Subject: [PATCH] minor improvement by using builtin_expect --- hermit/libkern/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/libkern/stdio.c b/hermit/libkern/stdio.c index 89119f8db..20b5d2fcf 100644 --- a/hermit/libkern/stdio.c +++ b/hermit/libkern/stdio.c @@ -67,7 +67,7 @@ int kputchar(int c) int pos; /* add place holder for end of string */ - if (!c) + if (BUILTIN_EXPECT(!c, 0)) c = '?'; if (early_print != NO_EARLY_PRINT)