diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index d63e6bc93..21cf57481 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -727,7 +727,15 @@ internal_normalizer_func (struct config_file *cfg, long double score, void *data return score; } else { +#ifdef HAVE_TANHL return max * tanhl (score / max); +#else + /* + * As some implementations of libm does not support tanhl, try to use + * tanh + */ + return max * tanh ((double) (score / max)); +#endif } return score; |