Crystal Space & GCC Issue
August 28th, 2001 by CrusaderJorrit Tyberghein updated theCrystal Space project site to notethat they’ve included (presumably in the current CVS source tree) workaroundfor a bug in GCC 2.96 and up.The bug occurs when level two optimization is selected during the compile process and the floatingpoint to integer cast function returns an invalid result.




November 30th, -0001 at 12:00 am
Incase any of you developers out there are wondering how much faster this optimization is, I took the liberty of writing a little test.
http://www.visi.com/~temporal/testqint.c
My results (GCC 2.95.3):
[//e/Source Code/test] gcc -O2 testqint.c -o testqint
[//e/Source Code/test] ./testqint
QInt took 771 time units.
Normal casts took 1072 time units.
So, QInt was 28.078358% faster.
[//e/Source Code/test]
*sigh*