MathSpecial::fm_exp: fix return value on ppc64
This commit is contained in:
@ -537,10 +537,8 @@ double MathSpecial::exp2_x86(double x)
|
|||||||
|
|
||||||
double MathSpecial::fm_exp(double x)
|
double MathSpecial::fm_exp(double x)
|
||||||
{
|
{
|
||||||
#if defined(__BYTE_ORDER__)
|
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
|
||||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
||||||
return exp2_x86(FM_DOUBLE_LOG2OFE * x);
|
return exp2_x86(FM_DOUBLE_LOG2OFE * x);
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
return ::exp(x);
|
return ::exp(x);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user