[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 |
REHI
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) {
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;
That's what I've seen by now... I'll keep surfing ;)
Regards
--
Mauricio Abre <address@hidden>
- [Tinycc-devel] Speed?,
Mauricio Abre <=