Attachment 'sage-3.4.patch'

Download

   1 --- sage-3.4/sage/ext/fast_eval.pyx~	2009-03-11 18:34:02.000000000 +1100
   2 +++ sage-3.4/sage/ext/fast_eval.pyx	2009-03-21 22:29:43.791629230 +1100
   3 @@ -119,13 +119,20 @@
   4      double exp(double)
   5      double log(double)
   6      double log10(double)
   7 -    double log2_ "log2"(double)
   8 +
   9 +IF UNAME_SYSNAME != "FreeBSD":
  10 +    cdef extern from "math.h":
  11 +        double log2_ "log2"(double)
  12  
  13  
  14  # This is only needed on Cygwin since log2 is a macro.
  15  # If we don't do this the cygwin GCC gets very confused.
  16 -cdef inline double log2(double x): 
  17 -    return log2_(x)
  18 +IF UNAME_SYSNAME != "FreeBSD":
  19 +    cdef inline double log2(double x): 
  20 +       return log2_(x)
  21 +ELSE:
  22 +    cdef inline double log2(double x):
  23 +        return 1.442695040888963407359924681*log(x)
  24  
  25  cdef extern from *:
  26      void* memcpy(void* dst, void* src, size_t len)
  27 --- sage-3.4/sage/combinat/partitions_c.cc~	2009-03-03 07:22:28.000000000 +1100
  28 +++ sage-3.4/sage/combinat/partitions_c.cc	2009-04-02 09:05:08.000000000 +1100
  29 @@ -94,6 +94,11 @@
  30  extern "C" long double coshl (long double);
  31  extern "C" long double sinhl (long double);
  32  #endif
  33 +/* FreeBSD pre-8.x doesn't have sqrtl() et al.  Hack around it for now
  34 + * since this sage code will be changed shortly */
  35 +#if defined(__FreeBSD__) && __FreeBSD__ < 8
  36 +#define sqrtl(x)	sqrt(x)
  37 +#endif
  38  
  39  
  40  

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.
  • [get | view] (2009-04-03 09:59:54, 1.7 KB) [[attachment:atlas-3.8.3.p0.txt]]
  • [get | view] (2009-04-03 10:00:08, 0.5 KB) [[attachment:base.txt]]
  • [get | view] (2009-04-03 10:00:32, 3.5 KB) [[attachment:clisp-2.46.p7.patch]]
  • [get | view] (2009-04-03 10:00:40, 0.4 KB) [[attachment:gd-2.0.35.p1.patch]]
  • [get | view] (2009-04-03 10:00:51, 0.3 KB) [[attachment:libgcrypt-1.4.3.p0.patch]]
  • [get | view] (2009-04-03 10:01:12, 0.3 KB) [[attachment:libgpg_error-1.6.p0.patch]]
  • [get | view] (2009-04-03 10:01:21, 2.0 KB) [[attachment:matplotlib-0.98.5.3rc0-svn6910.p3.patch]]
  • [get | view] (2009-04-03 10:01:43, 1.5 KB) [[attachment:numpy-1.2.0.p0.patch]]
  • [get | view] (2009-04-03 10:02:07, 1.0 KB) [[attachment:pari-2.3.3.p0.patch]]
  • [get | view] (2009-04-03 10:02:16, 0.8 KB) [[attachment:python-2.5.2.p9.patch]]
  • [get | view] (2009-04-03 10:02:24, 1.3 KB) [[attachment:r-2.6.1.p22.patch]]
  • [get | view] (2009-04-03 10:02:31, 0.8 KB) [[attachment:readline-5.2.p6.patch]]
  • [get | view] (2009-04-03 10:02:42, 1.3 KB) [[attachment:sage-3.4.patch]]
  • [get | view] (2009-03-28 21:23:23, 76.3 KB) [[attachment:sage-3.4.shar]]
  • [get | view] (2009-04-03 03:52:06, 25.7 KB) [[attachment:sage-3.4.tgz]]
  • [get | view] (2009-04-03 10:02:51, 0.6 KB) [[attachment:sage_scripts-3.4.patch]]
  • [get | view] (2009-04-03 10:02:57, 2.4 KB) [[attachment:singular-3-0-4-4-20080711.p4.patch]]
  • [get | view] (2009-04-03 10:03:26, 0.6 KB) [[attachment:tachyon-0.98beta.p8.patch]]
 All files | Selected Files: delete move to page copy to page

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