Re: [AD] compare ALLEGRO_COLOR with memcmp

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2011-06-06, at 6:54 PM, Evert Glebbeek wrote:
> In general, you cannot make that assumption. The same sequence of floating point caculations may produce a different outcome the second time they are called. I've seen it happen, but only under specific circumstances in code that is numerically intense. It's also something that is very heavily dependent on compiler vendor, version and settings.

Floating point calculations are standardized. Unless you change CPU/FPU settings, they're guaranteed to produce the same results.

Trent



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/