start documenting functions in the MathSpecial namespace

This commit is contained in:
Axel Kohlmeyer
2022-04-27 04:46:18 -04:00
parent 691ba89b6f
commit d857600d9c
4 changed files with 62 additions and 9 deletions

View File

@ -706,6 +706,7 @@ static const double fm_exp2_p[] = {
double MathSpecial::exp2_x86(double x)
{
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
double ipart, fpart, px, qx;
udi_t epart;
@ -726,6 +727,9 @@ double MathSpecial::exp2_x86(double x)
x = 1.0 + 2.0*(px/(qx-px));
return epart.f*x;
#else
return pow(2.0, x);
#endif
}
double MathSpecial::fm_exp(double x)