From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?VmluY2VudCBCZWxh72NoZQ==?= Newsgroups: gmane.emacs.devel Subject: RE: Code for converting between Elisp and Calc floats Date: Tue, 27 Oct 2009 20:38:32 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Content-Type: multipart/alternative; boundary="_2cdd0e93-4dcb-494a-b405-328157b71319_" X-Trace: ger.gmane.org 1256672335 29240 80.91.229.12 (27 Oct 2009 19:38:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 19:38:55 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 27 20:38:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2rsS-0004Vu-1d for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 20:38:44 +0100 Original-Received: from localhost ([127.0.0.1]:39843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2rsR-0003hA-AW for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 15:38:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2rsN-0003gv-1e for emacs-devel@gnu.org; Tue, 27 Oct 2009 15:38:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2rsI-0003gS-Ke for emacs-devel@gnu.org; Tue, 27 Oct 2009 15:38:38 -0400 Original-Received: from [199.232.76.173] (port=39543 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2rsI-0003gP-Dc for emacs-devel@gnu.org; Tue, 27 Oct 2009 15:38:34 -0400 Original-Received: from blu0-omc3-s36.blu0.hotmail.com ([65.55.116.111]:41374) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2rsI-0005cW-3a for emacs-devel@gnu.org; Tue, 27 Oct 2009 15:38:34 -0400 Original-Received: from BLU104-W10 ([65.55.116.74]) by blu0-omc3-s36.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 Oct 2009 12:38:33 -0700 X-Originating-IP: [92.135.119.98] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 27 Oct 2009 19:38:33.0536 (UTC) FILETIME=[11B7CC00:01CA573D] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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 Xref: news.gmane.org gmane.emacs.devel:116426 Archived-At: MIME-Version: 1.0 --_2cdd0e93-4dcb-494a-b405-328157b71319_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Actually my preference would be to keep the functionality you proposed > (i.e. two functions (de)construct-float written in C)=2C except force the > base to be 65536 (i.e. 16bits per integer)=2C and rewrite the C code to > use standard functions like frexp=2C floor=2C isnan=2C and friends. > Then I need some fonction to map the list of words with non-always-16-bit w= idth to a list of words with 16-bit width. I would do this in Lisp with som= e use of `lsh' and `+'=2C so that the Lisp part of my contribution could st= ill use the same interface. Regards=2C Vincent. =20 _________________________________________________________________ Nouveau Windows 7 : Trouvez le PC qui vous convient. En savoir plus. http://clk.atdmt.com/FRM/go/181574580/direct/01/= --_2cdd0e93-4dcb-494a-b405-328157b71319_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B Actually my preference would be to keep the functionality you pr= oposed
>=3B (i.e. two functions (de)construct-float written in C)=2C e= xcept force the
>=3B base to be 65536 (i.e. 16bits per integer)=2C and= rewrite the C code to
>=3B use standard functions like frexp=2C floor= =2C isnan=2C and friends.
>=3B

Then I need some fonction to map= the list of words with non-always-16-bit width to a list of words with 16-= bit width. I would do this in Lisp with some use of `lsh' and `+'=2C so tha= t the Lisp part of my contribution could still use the same interface.
<= BR>
Regards=2C
=A0 =A0 Vincent.







=

Nouveau Windows 7 : Trouvez le PC qui vous convient. En= savoir plus. = --_2cdd0e93-4dcb-494a-b405-328157b71319_--