From: Alan Cox Date: Sat, 6 Dec 2014 14:59:40 +0000 (+0000) Subject: putdigit: microoptimisations X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1e231510436e2da8b1a0d5554644d1115fc33d27;p=FUZIX.git putdigit: microoptimisations The compiler can't assume much about the variables after the call to put the character so do the operations the other way around --- diff --git a/Kernel/devio.c b/Kernel/devio.c index bbcc5bc2..cda40a6b 100644 --- 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); } }