public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb21cec
)
putdigit: microoptimisations
author
Alan Cox
<alan@linux.intel.com>
Sat, 6 Dec 2014 14:59:40 +0000
(14:59 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 6 Dec 2014 14:59:40 +0000
(14:59 +0000)
The compiler can't assume much about the variables after the call to put
the character so do the operations the other way around
Kernel/devio.c
patch
|
blob
|
history
diff --git
a/Kernel/devio.c
b/Kernel/devio.c
index
bbcc5bc
..
cda40a6
100644
(file)
--- a/
Kernel/devio.c
+++ b/
Kernel/devio.c
@@
-447,8
+447,8
@@
static void putdigit0(unsigned char c)
static void putdigit(unsigned char c, unsigned char *flag)
{
if (c || *flag) {
- putdigit0(c);
*flag |= c;
+ putdigit0(c);
}
}