🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12369

Re: Manx 3.6 bug & DBW's ext.c

#12369
From: bjornmu
Date: Mon, 24 Apr 1989 23:31
32 lines
1521 bytes
Bill Murphy reported problems with the HUGE vaule when compiling DBW_Render.

>    cv(HUGE,HUGE,HUGE,re->min);

(from the file ext.c)

The point is, the #define in the same file is inside an #ifdef:

>#ifdef MCH_AMIGA
>#define     HUGE            ((float)1.7e+38)
>#endif

But the macro MCH_AMIGA is undefined.  So instaed of using this value
for HUGE, the one from "math.h" is used.  (math.h is #include'd by
ray.h).  That HUGE value is intended for double precision and is too
big for float.

To solve the problem, simply remove the #ifdef, or define MCH_AMIGA as
1 (in ray.h).

BTW, has anyone tried to compile DBW_Render (I'm talking about the
modified version by Ofer Licht) with Lattice 5.02 and run it on a
68020?  I get all sorts of GURU's or garbage output, depending on the
floating point options.  The only option that works is FFP.

But what I really want, of course, is in-line code for the 68881.
Anyone succeeded in compiling with "lc -m2 -f8d" ?????  I strongly
suspect a compiler bug, but that may be possible to get around.

Bj|rn Munch   ("The Man With a Pipe in His Name")

....who is finally able to read the articles in comp.sys.amiga!!   :-)
Technical Details
Message-ID: <8904242330.AA20426@fenris.idt.unit.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!idt.unit.no!bjornmu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!idt.unit.no!bjornmu
From: bjornmu@idt.unit.no
Newsgroups: comp.sys.amiga.tech
Subject: Re: Manx 3.6 bug & DBW's ext.c
Message-ID: <8904242330.AA20426@fenris.idt.unit.no>
Date: 24 Apr 89 23:31:05 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 32