Beispiel #1
0
/* //////////////////////////////////////////////////////////////////////////////////////
 * implementation
 */
tb_float_t tb_expf(tb_float_t x)
{
#ifdef TB_CONFIG_LIBM_HAVE_EXPF
    return expf(x);
#else
    tb_float_t a = x - (tb_long_t)x;
    return (tb_expif(((tb_long_t)x)) * tb_exp1f(a));
#endif
}
Beispiel #2
0
/* //////////////////////////////////////////////////////////////////////////////////////
 * implementation
 */
tb_float_t tb_expf(tb_float_t x)
{
#if 0
    return expf(x);
#else
    tb_float_t a = x - (tb_long_t)x;
    return (tb_expif(((tb_long_t)x)) * tb_exp1f(a));
#endif
}