tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Speed?


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Speed?
Date: Fri, 21 Nov 2003 17:59:28 +0100
User-agent: Mutt/1.4.1i

Everyone keeps talking about the problems that arise when replacing /
with >>. Why does nobody post the obvious solution?
g() (implicitly) casts c to an unsigned char, so why bother?
And even TinyCC can then change that division to a shift (done in gen_opic).

diff -rwud /home/daniel/tinycc/i386-gen.c ./i386-gen.c
--- /home/daniel/tinycc/i386-gen.c       Wed Oct 15 00:15:57 2003
+++ ./i386-gen.c        Fri Nov 21 17:46:54 2003
@@ -100,7 +100,7 @@
     ind = ind1;
 }
 
-void o(int c)
+void o(unsigned int c)
 {
     while (c) {
         g(c);

  Daniel

Attachment: pgpBUQgUFMXZ4.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]