* Re: Request for Jim ( was Re: POVray success!!)
[not found] <Pine.LNX.3.91.970404060422.7061A-100000@edgar.blauedonau.com>
@ 1997-04-07 19:34 ` Jim Nance
1997-04-09 3:03 ` POV version 3.01 explained ( was Re: Request for Jim ( was Re: POVray success!!)) Terry L. Ridder
0 siblings, 1 reply; 2+ messages in thread
From: Jim Nance @ 1997-04-07 19:34 UTC (permalink / raw)
> > > This is very good to know about the OSF compiler.
> > > Would you have the time to download the latest POV version 3.01 and
> > > try that version under OSF?
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:
-ieee
Ensure support of all portable features of the IEEE Standard for Binary
Floating-Point Arithmetic (ANSI/IEEE Std 754-1985), including the
treatment of denormalized numbers, NaNs, and infinities and the han-
dling of error cases. This flag also sets the _IEEE_FP C preprocessor
macro.
If your program must use IEEE signaling features that are not portable
across different IEEE implementations, see the ieee(3) reference page
for a discussion of how to access them under the Digital UNIX operating
system.
but the people from Digital told me not to use it unless I had to because it
slowed things down a lot. I don't think gcc has a flag like this, but I dont
know this for certain.
On a related note, does anyone know if glibc will compile under Digital Unix?
I would love to be able to make statically linked DU binaries that I could
distribute w/o having to worry about Digital Unix license problems. Actually,
if I knew where to get it I would just try to compile it, so I am really
asking for a pointer to the source.
Thanks,
Jim
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* POV version 3.01 explained ( was Re: Request for Jim ( was Re: POVray success!!))
1997-04-07 19:34 ` Request for Jim ( was Re: POVray success!!) Jim Nance
@ 1997-04-09 3:03 ` Terry L. Ridder
0 siblings, 0 replies; 2+ messages in thread
From: Terry L. Ridder @ 1997-04-09 3:03 UTC (permalink / raw)
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.
>
<snip>
>
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-09 3:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.3.91.970404060422.7061A-100000@edgar.blauedonau.com>
1997-04-07 19:34 ` Request for Jim ( was Re: POVray success!!) Jim Nance
1997-04-09 3:03 ` POV version 3.01 explained ( was Re: Request for Jim ( was Re: POVray success!!)) Terry L. Ridder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox