🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: math in Lattice

#5042
From: Doug Walker
Date: Mon, 27 Aug 1990 19:56
28 lines
1777 bytes
In article <90233.133801KELLYDK@QUCDN.BITNET> KELLYDK@QUCDN.QueensU.CA (Doug Kelly) writes:
>
>I'm porting some numerical code from a PC to an IBM RS/6000 and,
>since I hate telnet, I 'ANSI'd' the program on my Amiga, and then
>recompiled it on the 6000.  Here's the problem - the Amiga version
>gives the wrong results!!  The program compiles fine, runs to
>completion with no errors, but the results are wrong.  THE SAME CODE
>runs on both the pc (Turbo) and the 6000.
>I'm using Lattice 5.02 (I know it's old).  I've tried all three
>math formats - ffp, ieee and inline 881 and none of them come out right.

5.02 had some bugs related to pushing and popping floats.  If your 
functions have float parameters, you might want to call SAS Institute
and ask for the (free) 5.05 upgrade.  Or you could just go ahead and
get the (not free) 5.10 upgrade for $40.  
 
If you want to try to fix it with 5.02, make sure you have a prototype
in scope for all functions, both when you call them and when they are
defined;  and use new-style ANSI function definitions instead of old-style
definitions.  If you are 100% ANSI, the bug does not show up.


  *****
=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
 *|. o.| ||
  | o  |//     For all you do, this bug's for you!
  ====== 
usenet: ...mcnc!rti!sas!walker   plink: dwalker  bix: djwalker 
Technical Details
Message-ID: <1990Aug27.195608.1102@unx.sas.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!mephisto!mcnc!rti!mozart!walker
References: <90233.133801KELLYDK@QUCDN.BITNET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!mephisto!mcnc!rti!mozart!walker
From: walker@unx.sas.com (Doug Walker)
Newsgroups: comp.sys.amiga.tech
Subject: Re: math in Lattice
Message-ID: <1990Aug27.195608.1102@unx.sas.com>
Date: 27 Aug 90 19:56:08 GMT
References: <90233.133801KELLYDK@QUCDN.BITNET>
Organization: SAS Institute Inc.
Lines: 28