From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199704090334.WAA04660@ns1.unicomp.net> Date: Tue, 8 Apr 1997 22:03:20 -0500 (CDT) From: Terry L. Ridder Subject: POV version 3.01 explained ( was Re: Request for Jim ( was Re: POVray success!!)) In-Reply-To: <9704071934.AA17042@halfpint.rtp.avanticorp.com> Please forgive typo's and missing capital letters. A one handed programmer is about as good as a one handed pianist. ;-) First off let me again thank Jim for helping in this debugging effort. On Mon, 7 Apr 1997, Jim Nance wrote: > OK, > I got the 3.01 POV source and compiled and ran. I encounterd the SIGFPE > that I posted about earlier, and fixed it by changing line 328 of super.c > like this: > > - if (v0 * v1 < 0.0) > + if ((v0>0 && v1<0) || (v0<0 && v1>0)) > > I think that will be faster anyway. > > It now runs fine and the rendered image looks good too. I assume that this > runs on the other platforms because v0*v1 will generate INF or NaN while it > generates an FPE on the alpha. There is a compiler switch to control this: That is what I thought originally too. After debugging the code on both the Alpha and an Intel box, the Alpha version has vastly different values for v0 and v1 than the Intel version. Same source code. Running POV version 3.00b on both platforms yields similiar results, and does work on both platforms. Jim's fix above does work, but I think that we are fixing the symptom and not the cause. I am waiting for the patch files from the POV team member and then will continue to narrow down where the problem is. > > > Thanks, > > Jim > Terry L. Ridder Blue Danube Software (Blaue Donau Software) "We do not write software, we compose it." "And every hour of every day I'm learning more the more I learn, the less I know about before the less I know, the more I want to look around digging deep for clues on higher ground." ==Higher Ground== UB40 -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com