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:
parent
ccbd363d6d
commit
50bdff1a4f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue