Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!bbn.com!fkittred From: fkittred@bbn.com (Fletcher Kittredge) Newsgroups: comp.unix.ultrix Subject: Determining IEEE NaN and INF on RISC Ultrix Keywords: IEEE NaN INF MIPS low-endian Message-ID: <59582@bbn.BBN.COM> Date: 21 Sep 90 14:52:19 GMT Sender: news@bbn.com Reply-To: fkittred@spca.bbn.com (Fletcher Kittredge) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 20 I need to determine whether a double precision floating point number is a IEEE NaN or INF (+ or -) value on Sun, HP and DEC RISC systems. Sun and HP supply the isnan() and isinf() functions. I can't find these functions on the DEC systems. There is a include file called /usr/include/nan.h which seems to have macros for determining these values, but the macros seem to be for a high-endian MIPS system, not DEC's low-endian version. Can anyone help me with this? thanks! fletcher Fletcher E. Kittredge fkittred@bbn.com Platforms and Tools Group BBN Software Products Company 10 Fawcett St. Cambridge, MA. 02138