🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.masscomp
Article #190

ieee copysign() in the sun world

#190
From: dale chayes
Date: Tue, 14 Mar 1989 17:43
36 lines
1857 bytes
While porting some in-house code, I have come across a funtion in
the math.h include file called copysign(x,y) which returns x with the
sign of y. While this seems trivial, I wondered if it is significant?

The comments in Sun's include file say that these functions are
reccomended by IEEE, and sure enough they are. As a matter of fact,
copysign() is the first funtion in the appendix of ANSI/IEEE Std 754-1985
"Recommended Functions and Predicates."

The text (in the appendix) says:

	Copysign()x,y) returns x with the sign of y. Hence, 
	abs(x)=copysign(x,1.0), even it (sic) x is NaN.


It turns out, that there are a whole list of "recommended" funtcions in
the predicate that don't appear to be supplied by Concurrent/Masscomp.

I'm mostly a hardware guy (especially when it comes to this kind of
stuff.) Anyone got any clues?

Dale
------------------------------------------------------------------------


-- 
Dale Chayes Lamont-Doherty Geological Observatory of Columbia University
Route 9W, Palisades, N.Y.  10964	dale@lamont.ldgo.columbia.edu
voice:	(914) 359-2900 extension 434	fax: (914) 359-6817


The MASSCOMP USERS' SOCIETY newsgroup is comp.sys.masscomp.
Articles to: masscomp@soma.bcm.tmc.edu or uunet!soma.bcm.tmc.edu!masscomp
Administrative stuff: masscomp-request@soma.bcm.tmc.edu
Stan Barber, Moderator
Technical Details
Message-ID: <1452@gazette.bcm.tmc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!bcm!soma!masscomp-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!bcm!soma!masscomp-request
From: ldgo!dale@lamont.UUCP (dale chayes)
Newsgroups: comp.sys.masscomp
Subject: ieee copysign() in the sun world
Keywords: masscomp port sun ieee sign
Message-ID: <1452@gazette.bcm.tmc.edu>
Date: 14 Mar 89 17:43:30 GMT
Sender: usenet@bcm.tmc.edu
Organization: Lamont-Doherty Geological Observatory N.Y.
Lines: 36
Approved: masscomp@soma.neuro.bcm.tmc.edu
Status: R