Attachment '3.2.3.final-solaris-fixes.patch'

Download

   1 # HG changeset patch
   2 # User [email protected]
   3 # Date 1218321007 14400
   4 # Node ID a935fcca50122ed93c3084eb3caecfe49b72daa2
   5 # Parent  717c10d9cd4a6f693add3b39365e1238b768b961
   6 Solaris Fixes
   7 
   8 diff -r 717c10d9cd4a -r a935fcca5012 sage/combinat/partitions_c.cc
   9 --- a/sage/combinat/partitions_c.cc	Fri Jul 11 11:46:02 2008 -0700
  10 +++ b/sage/combinat/partitions_c.cc	Sat Aug 09 18:30:07 2008 -0400
  11 @@ -113,6 +113,8 @@ extern "C" long double sinhl (long doubl
  12  #include <qd/dd_real.h>
  13  #include <qd/fpu.h>
  14  
  15 +#define RAND_MAX 2147483647
  16 +
  17  using namespace std;
  18  
  19  using std::cout;
  20 @@ -158,11 +160,11 @@ const unsigned int long_double_precision
  21                                                                              //      will not ever be used. It would be nice if this were fixed.
  22  
  23  
  24 -const unsigned int qd_precision = 200;                          // The assumed precision of a qd_real. (Note, qd_reals should have a precision of
  25 +const unsigned int qd_precision = 170;                          // The assumed precision of a qd_real. (Note, qd_reals should have a precision of
  26                                                                  // 4 * double_precision = 4*53, but since we need the library to be compiled with
  27                                                                  // "sloppy" multiplication and division if we want it to be fast, so we only count
  28                                                                  // on it for a little less precision.
  29 -const unsigned int dd_precision = 100;                          // The assumed precision for a dd_real. (Same note applies here.)
  30 +const unsigned int dd_precision = 70;                          // The assumed precision for a dd_real. (Same note applies here.)
  31  
  32  
  33  
  34 diff -r 717c10d9cd4a -r a935fcca5012 sage/ext/fast_eval.pyx
  35 --- a/sage/ext/fast_eval.pyx	Fri Jul 11 11:46:02 2008 -0700
  36 +++ b/sage/ext/fast_eval.pyx	Sat Aug 09 18:30:07 2008 -0400
  37 @@ -914,7 +914,7 @@ cdef class FastDoubleFunc:
  38              sage: from sage.ext.fast_eval import fast_float_arg
  39              sage: f = fast_float_arg(0).exp()
  40              sage: f(1)
  41 -            2.7182818284590451
  42 +            2.718281828459045...
  43              sage: f(100)
  44              2.6881171418161356e+43
  45          """
  46 diff -r 717c10d9cd4a -r a935fcca5012 sage/ext/random.pxi
  47 --- a/sage/ext/random.pxi	Fri Jul 11 11:46:02 2008 -0700
  48 +++ b/sage/ext/random.pxi	Sat Aug 09 18:30:07 2008 -0400
  49 @@ -2,9 +2,11 @@
  50  # Setup the c-library and GMP random number generators. 
  51  # seed it when module is loaded.
  52  # from random import randrange
  53 -cdef extern from "stdlib.h":
  54 -    long RAND_MAX
  55 +#cdef extern from "stdlib.h":
  56 +#    long RAND_MAX
  57  
  58 +cdef long RAND_MAX
  59 +RAND_MAX = 2147483647
  60  
  61  from sage.misc.randstate cimport randstate, current_randstate
  62  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.