Mail Archives: djgpp-workers/2001/12/15/13:31:21
> Date: Sat, 15 Dec 2001 11:48:52 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
>
> Built against 2.03, 387=n, EMU387=c:/develop/djgpp.rw/bin/emu387.dxe:
>
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.09, sin(0.1) = 0.09, cos(0.1) = 4e-06
> atan(0.2) = 0.1, sin(0.2) = 0.1, cos(0.2) = 6e-05
> atan(0.2) = 0.2, sin(0.2) = 0.2, cos(0.2) = 0.0003
> atan(0.3) = 0.3, sin(0.3) = 0.3, cos(0.3) = 0.001
> atan(0.4) = 0.4, sin(0.4) = 0.4, cos(0.4) = 0.002
> atan(0.5) = 0.5, sin(0.5) = 0.5, cos(0.5) = 0.005
> atan(0.6) = 0.6, sin(0.6) = 0.6, cos(0.6) = 0.009
> atan(0.7) = 0.6, sin(0.7) = 0.7, cos(0.7) = 0.01
> atan(0.8) = 0.7, sin(0.8) = 0.7, cos(0.8) = 0.02
>
> Built against CVS, 387=n, EMU387=c:/djgpp/bin/emu387.dxe:
>
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.0996687, sin(0.1) = 0.0998334, cos(0.1) = 0.995004
> atan(0.2) = 0.197396, sin(0.2) = 0.198669, cos(0.2) = 0.980067
> atan(0.3) = 0.291457, sin(0.3) = 0.29552, cos(0.3) = 0.955336
> atan(0.4) = 0.380506, sin(0.4) = 0.389418, cos(0.4) = 0.921061
> atan(0.5) = 0.463648, sin(0.5) = 0.479426, cos(0.5) = 0.877583
> atan(0.6) = 0.54042, sin(0.6) = 0.564642, cos(0.6) = 0.825336
> atan(0.7) = 0.610726, sin(0.7) = 0.644218, cos(0.7) = 0.764842
> atan(0.8) = 0.674741, sin(0.8) = 0.717356, cos(0.8) = 0.696707
> atan(0.9) = 0.732815, sin(0.9) = 0.783327, cos(0.9) = 0.62161
>
> So I conclude that there's something very wrong with emu387.dxe built
> against CVS.
It's quite obvious, yes.
> I rebuilt without profiling, but the result was the same. I downgraded to
> gcc 2.95.3 and it worked again:
>
> atan(0) = 0, sin(0) = 0, cos(0) = 1
> atan(0.1) = 0.0996687, sin(0.1) = 0.0998334, cos(0.1) = 0.995004
> atan(0.2) = 0.197396, sin(0.2) = 0.198669, cos(0.2) = 0.980067
> atan(0.3) = 0.291457, sin(0.3) = 0.29552, cos(0.3) = 0.955336
> atan(0.4) = 0.380506, sin(0.4) = 0.389418, cos(0.4) = 0.921061
> atan(0.5) = 0.463648, sin(0.5) = 0.479426, cos(0.5) = 0.877583
> atan(0.6) = 0.54042, sin(0.6) = 0.564642, cos(0.6) = 0.825336
> atan(0.7) = 0.610726, sin(0.7) = 0.644218, cos(0.7) = 0.764842
> atan(0.8) = 0.674741, sin(0.8) = 0.717356, cos(0.8) = 0.696707
> atan(0.9) = 0.732815, sin(0.9) = 0.783327, cos(0.9) = 0.62161
>
> So it looks like a code generation issue.
Indeed. Thanks for digging into this.
Andris, any ideas?
- Raw text -