[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Yet another small patch from me. This one is for exswitch to be able to
show fractals on non-Intel processors :
--- exswitch.c.orig Mon Feb 7 14:53:08 2000
+++ exswitch.c Mon Feb 7 15:44:28 2000
@@ -157,7 +157,10 @@
zi = ti + ci;
}
- c = sqrt(zi*zi + zr*zr) * 256;
+ if ((zi != zi) || (zr != zr))
+ c = 0;
+ else
+ c = sqrt(zi*zi + zr*zr) * 256;
if (c > 255)
c = 255;
Non-Intel processors (in my case IP and Sparc) handles arithmetics with
NaN different way than Intel.
Stepan Roh