LINUXGAMES

Crystal Space & GCC Issue

August 28th, 2001 by Crusader

Jorrit 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.

One Response to “Crystal Space & GCC Issue”

  1. Temporal Says:

    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*

Leave a Reply

You must be logged in to post a comment.