From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: num2int mpz_import word order Date: Sun, 15 Feb 2004 08:30:07 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <878yj5jnv4.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1076797937 1150 80.91.224.253 (14 Feb 2004 22:32:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 22:32:17 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Feb 14 23:32:05 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1As8KT-00060f-00 for ; Sat, 14 Feb 2004 23:32:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1As8K8-0007pY-UT for guile-devel@m.gmane.org; Sat, 14 Feb 2004 17:31:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1As8Jb-0007oj-9J for guile-devel@gnu.org; Sat, 14 Feb 2004 17:31:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1As8J3-0007U4-Fk for guile-devel@gnu.org; Sat, 14 Feb 2004 17:31:09 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1As8Iv-0007QN-Uv for guile-devel@gnu.org; Sat, 14 Feb 2004 17:30:30 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i1EMUNLE026090 for ; Sun, 15 Feb 2004 09:30:23 +1100 Original-Received: from localhost (ppp251.dyn250.pacific.net.au [203.143.250.251]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i1EMULcg023201 for ; Sun, 15 Feb 2004 09:30:22 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1As8IZ-0001Qg-00; Sun, 15 Feb 2004 08:30:07 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3376 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3376 --=-=-= * num2integral.i.c (INTEGRAL2BIG): WORDS_BIGENDIAN not right for word order parameter to mpz_import, in fact with just one word there's no order to worry about at all. --=-=-= Content-Disposition: inline; filename=num2integral.i.c.word-order.diff --- num2integral.i.c.~1.20.~ 2003-05-24 09:22:52.000000000 +1000 +++ num2integral.i.c 2004-02-14 13:23:30.000000000 +1000 @@ -204,15 +204,11 @@ #endif mpz_import (SCM_I_BIG_MPZ (result), - 1, -#ifdef WORDS_BIGENDIAN - 1, -#else - -1, -#endif - SIZEOF_ITYPE, - 0, - 0, + 1, /* one word */ + 1, /* word order irrelevant when just one word */ + SIZEOF_ITYPE, /* word size */ + 0, /* native endianness within word */ + 0, /* no nails */ &n); /* mpz_import doesn't handle sign */ --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--