[Top][All Lists]

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

[Tinycc-devel] Speed?

From: Mauricio Abre
Subject: [Tinycc-devel] Speed?
Date: 20 Nov 2003 22:55:52 -0300


I started to look at src code and I saw this in i386-gen.c:

/* XXX: make it faster? */
I think it is a TODO

And after the code:

void o(int c)
        while (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;

That's what I've seen by now... I'll keep surfing ;)


Mauricio Abre <address@hidden>

reply via email to

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