1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

minor improvement by using builtin_expect

This commit is contained in:
Stefan Lankes 2015-07-19 11:04:06 +02:00
parent ccbd363d6d
commit 50bdff1a4f

View file

@ -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)