🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #6476

GNU C Floating Point Math

#6476
From: Stdnt 05
Date: Mon, 04 Dec 1989 16:30
18 lines
1175 bytes
Does anyone have any experience with GNU C and using floating point
math?  From my brief experiences of trying to write some 3D animation
in GNU C (or should I say my brief run-in with GNU C) I have uncovered
an unreasonably large number of errors in the floating point handling.
Admittedly, a number of them cleared up when I stopped using -mshort,
even though I used -lpml16 whenever I used -mshort.

Some of the errors include:
	cos(0) doesn't seem to work
	(x*x)+(y*y) doesn't work when -1<y<0
	sqrt() doesn't work (with -mshort only);
	   neither do related functions frexp and pow.

Any ideas or suggestions?  After comparing GNU C with an ancient copy
of the original (c.1986) Megamax C, with Megamax C blowing GNU C away,
I'll probably get Laser C next month anyway.

Thanks, Eric
Technical Details
Message-ID: <3497@jhunix.HCF.JHU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!aplcen!jhunix!esp_05

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!aplcen!jhunix!esp_05
From: esp_05@jhunix.HCF.JHU.EDU (Stdnt 05)
Newsgroups: comp.sys.atari.st
Subject: GNU C Floating Point Math
Message-ID: <3497@jhunix.HCF.JHU.EDU>
Date: 4 Dec 89 16:30:59 GMT
Reply-To: esp_05@jhunix.UUCP (Stdnt 05)
Organization: The Johns Hopkins University - HCF
Lines: 18