Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: frank@ned.dem.csiro.au (Frank Horowitz)
Subject: Signaling NaN under dUnix 3.2???
Date: 1995/11/08	[thread overview]
Message-ID: <frank-0811951015230001@192.149.36.132> (raw)

Does anyone know how to return a Signaling NaN in a C double under dUnix 3.2?

Under SunOs, there is a system call "signaling_nan" that returns such a
value. dUnix has no such call. Have I missed something in the man pages?

The bit pattern for both positive and negative signaling NaN is defined in
/usr/include/machine/fpu.h... I've tried stuffing one into a union between
the appropriate type of int and a double, but with no success. 

Any hints???

   Thanks in advance.

-- 
Frank Horowitz                                       frank@ned.dem.csiro.au
CSIRO-Exploration & Mining, PO Box 437, Nedlands, WA 6009,        AUSTRALIA
Tel. (09)389-8421 (Int'l +61 9 389 8421), FAX (09)389-1906 (+61 9 389 1906)



                 reply	other threads:[~1995-11-08  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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