Project

General

Profile

Feature #12647 ยป Update-tanh-function-to-be-faster.patch

qitar888 (Chia-sheng Chen), 08/02/2016 08:42 AM

View differences:

math.c
283 283
double
284 284
tanh(double x)
285 285
{
286
# if defined(HAVE_SINH) && defined(HAVE_COSH)  
286 287
    return sinh(x) / cosh(x);
288
# else
289
    return (exp(2*x) - 1) / (exp(2*x) + 1);
290
# endif    
287 291
}
288 292
#endif
289 293

  
290
-