ports/math/R/files/patch-src_main_complex.c
Joseph Mingrone 1e124d39bd math/R: Update to version 3.4.1
Upstream changes:
https://cran.r-project.org/doc/manuals/r-release/NEWS.html

Port changes:
- Add aarch64 to ONLY_FOR_ARCHS [1]
- Add off-by-default option for experimental fortran support via flang [2]

Submitted by:	[1] andrew, [2] yuri@rawbw.com
2017-07-04 17:07:44 +00:00

20 lines
636 B
C

--- src/main/complex.c.orig 2017-03-27 22:15:12 UTC
+++ src/main/complex.c
@@ -133,7 +133,7 @@ static double complex mycpow (double com
} else if (yi == 0.0 && yr == (k = (int) yr) && abs(k) <= 65536)
Z = R_cpow_n(X, k);
else
-#ifdef HAVE_CPOW
+#if defined(HAVE_CPOW) && !defined(__FreeBSD__)
Z = cpow(X, Y);
#else
{
@@ -365,7 +365,7 @@ void attribute_hidden z_prec_r(Rcomplex
Currently (Feb 2011) they are used on FreeBSD.
*/
-#ifndef HAVE_CLOG
+#if !defined(HAVE_CLOG) || defined(__FreeBSD__)
#define clog R_clog
/* FIXME: maybe add full IEC60559 support */
static double complex clog(double complex x)