From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <67C6BAFA-908C-4756-848F-4D65095913EB@mac.com> References: <20071219203654.3714F1E8C1C@holo.morphisms.net> <67C6BAFA-908C-4756-848F-4D65095913EB@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3FA5A9CA-EE09-4FDB-A9AA-118E3E8A3AB6@mac.com> Content-Transfer-Encoding: 7bit From: dave.l@mac.com Subject: Re: [9fans] fun and scary evil C code Date: Thu, 20 Dec 2007 00:33:50 +0000 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 1cd4dc42-ead3-11e9-9d60-3106f5b1d025 > As far as I can see, > they're assuming that double is IEEE 754 and that you can > rip apart such a representation on an random-endian machine > and re-assemble it on an any other random-endian machine. I lied. They're actually using that stuff to pick apart the (presumed IEEE 754) doubles into exponent, mantissa, ... My questions still stand ... Also, that file is such a tangled nest of ifdefs ... is anyone sure whether (and if so, when) that code is invoked? DaveL