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.You are not allowed to attach a file to this page.