From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: IEEE single precision float values Date: Sat, 12 Feb 2005 20:53:24 +0100 Message-ID: References: <87hdkjsamb.fsf@lexx.delysid.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108239508 31551 80.91.229.2 (12 Feb 2005 20:18:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2005 20:18:28 +0000 (UTC) Cc: Mario Lang , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 12 21:18:27 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D03iZ-0000KX-G9 for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 21:18:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D03xl-0007SR-Pd for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 15:33:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D03th-0005YB-I7 for emacs-devel@gnu.org; Sat, 12 Feb 2005 15:29:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D03rz-00059O-Jm for emacs-devel@gnu.org; Sat, 12 Feb 2005 15:28:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D03rx-000523-UT for emacs-devel@gnu.org; Sat, 12 Feb 2005 15:27:58 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D03Kd-0003ja-0Q for emacs-devel@gnu.org; Sat, 12 Feb 2005 14:53:31 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1D03Gh-0003Pp-SB; Sat, 12 Feb 2005 14:49:28 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 12 Feb 2005 14:16:57 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33310 Richard Stallman writes: > I came up with the following two functions below. I think they > are generically useable for network IO and possibly reading > certain data records from files directly. I am fairly sure > my version is very bad regarding performance though. > > Whether that is a problem depends on what the application is. > Anyway, if this is generally useful we could install it. I think this is something that should quite likely rather be done in C on platforms with IEEE floating point arithmetic. It seems rather pointless (not to mention bug-prone) to go through all that Elisp when just typecasting the bit patterns should be enough. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum