Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jim Nance <jlnance@avanticorp.com>
Subject: Re: Request for Jim ( was Re: POVray success!!)
Date: Mon, 7 Apr 1997 15:34:41 -0400 (EDT)	[thread overview]
Message-ID: <9704071934.AA17042@halfpint.rtp.avanticorp.com> (raw)
In-Reply-To: <Pine.LNX.3.91.970404060422.7061A-100000@edgar.blauedonau.com>

> > > 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

       reply	other threads:[~1997-04-07 19:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.970404060422.7061A-100000@edgar.blauedonau.com>
1997-04-07 19:34 ` Jim Nance [this message]
1997-04-09  3:03   ` POV version 3.01 explained ( was Re: Request for Jim ( was Re: POVray success!!)) Terry L. Ridder
     [not found] <9704032026.AA28992@halfpint.rtp.avanticorp.com>
1997-04-03 21:59 ` Request for Jim ( was Re: POVray success!!) Terry L. Ridder
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox