Kaydet (Commit) cc906ec4 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

The Android NDK for some reason don't have these math functions in std::

Not even if one includes <cmath> instead of <math.h>. So just use the
C functions then.

Change-Id: Ic8499bc7bcd5c84b6e52e1d5dc799f9f058db816
üst cf35dbd1
......@@ -972,12 +972,12 @@ double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C()
double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C()
{
return ::std::expm1(fValue);
return expm1(fValue);
}
double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C()
{
return ::std::log1p(fValue);
return log1p(fValue);
}
double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C()
......@@ -988,13 +988,13 @@ double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C()
/** Parent error function (erf) */
double SAL_CALL rtl_math_erf( double x ) SAL_THROW_EXTERN_C()
{
return ::std::erf(x);
return erf(x);
}
/** Parent complementary error function (erfc) */
double SAL_CALL rtl_math_erfc( double x ) SAL_THROW_EXTERN_C()
{
return ::std::erfc(x);
return erfc(x);
}
/** improved accuracy of asinh for |x| large and for x near zero
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment