guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

num2int mpz_import word order


From: Kevin Ryde
Subject: num2int mpz_import word order
Date: Sun, 15 Feb 2004 08:30:07 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

        * 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.

--- 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 */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]