Skip to content

Commit b20e71b

Browse files
committed
Modifying some PPC code to make ppc64le work
1 parent 7203552 commit b20e71b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/CPnumerics.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,10 @@ inline double get_HUGE() {
669669
// Microsoft version of math.h doesn't include acosh or asinh, so we just define them here.
670670
// It was included from Visual Studio 2013
671671
# if _MSC_VER < 1800
672-
static double acosh(double x) {
672+
double acosh(double x) {
673673
return log(x + sqrt(x * x - 1.0));
674674
}
675-
static double asinh(double value) {
675+
double asinh(double value) {
676676
if (value > 0) {
677677
return log(value + sqrt(value * value + 1));
678678
} else {
@@ -684,10 +684,10 @@ static double asinh(double value) {
684684

685685
#if defined(__powerpc__)
686686
// PPC version of math.h doesn't include acosh or asinh, so we just define them here
687-
static double acosh(double x) {
687+
double acosh(double x) {
688688
return log(x + sqrt(x * x - 1.0));
689689
}
690-
static double asinh(double value) {
690+
double asinh(double value) {
691691
if (value > 0) {
692692
return log(value + sqrt(value * value + 1));
693693
} else {

0 commit comments

Comments
 (0)