From c664f46b31650f362cc132bcc17a3f9de923768b Mon Sep 17 00:00:00 2001
From: Christoph Junghans <junghans@votca.org>
Date: Wed, 28 Mar 2018 11:28:28 -0600
Subject: [PATCH] MathSpecial::fm_exp: fix return value on ppc64

---
 src/math_special.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/math_special.cpp b/src/math_special.cpp
index d778e1e1ad..4b9197f0fc 100644
--- a/src/math_special.cpp
+++ b/src/math_special.cpp
@@ -537,10 +537,8 @@ double MathSpecial::exp2_x86(double x)
 
 double MathSpecial::fm_exp(double x)
 {
-#if defined(__BYTE_ORDER__)
-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
     return exp2_x86(FM_DOUBLE_LOG2OFE * x);
-#endif
 #else
     return ::exp(x);
 #endif
-- 
GitLab