6986983b7c
- bump version to 20180316 (stable) - many little bugfxes: http://lammps.sandia.gov/bug.html * A potentially harmful bug was found and fixed in the pair_style reax/c command - Added 858.patch to fix return value on ppc64 OBS-URL: https://build.opensuse.org/request/show/592169 OBS-URL: https://build.opensuse.org/package/show/science/lammps?expand=0&rev=48
26 lines
796 B
Diff
26 lines
796 B
Diff
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
|