tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Speed?


From: Philippe Ribet
Subject: Re: [Tinycc-devel] Speed?
Date: Fri, 21 Nov 2003 09:08:57 +0100

Mauricio Abre wrote:

> void o(int c)
> {
>         while (c) {
>                 g(c);
>                 c = c / 256;
>         }
> }
>
> Correct me if I'm wrong, but isn't shift faster than division?
>
> If so, the line
>
>         c >>= 8;
>
> Should be faster than
>
>         c = c / 256;

But c is declared as "int", not as "unsigned int". This will not give
the same result if c is neg.

--
Philippe Ribet

                         The README file said
              "Requires Windows 95, NT 4.0, or better."
                    So... I installed it on Linux!







reply via email to

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