Esempio n. 1
0
inline long double tgamma(long double x)
{
#ifdef BOOST_MSVC
   return gamma((double)x); 
#else
   return gammal(x); 
#endif
}
Esempio n. 2
0
static TACommandVerdict gammal_cmd(TAThread thread,TAInputStream stream)
{
    long double x, res;

    x = readLongDouble(&stream);

    START_TARGET_OPERATION(thread);

    errno = 0;
    res = gammal(x);

    END_TARGET_OPERATION(thread);

    writeInt(thread, errno);
    writeLongDouble(thread, res);
    writeInt(thread, signgam);
    sendResponse(thread);

    return taDefaultVerdict;
}