From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6bb8da20ac2ae249d4af55bea2d5e7b0@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] testing and p9fmt From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 5 Dec 2002 23:48:54 -0500 Topicbox-Message-UUID: 2f2906fa-eacb-11e9-9e20-41e7f4b1d025 There are a few other things to be aware of. First, fmtdef.h says typedef unsigned long uvlong; which should be typedef unsigned long long uvlong; on systems that support it. As for nan, I believe that this static uvlong uvnan = 0x7FF0000000000001; double nan(double *d) { USED(d); return *(double*)&uvnan; } will work on systems that need it, as long as they use 64-bit doubles. Russ