From c6a7816bed699b8167d33110f40569c83ce2f815 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Fri, 6 Sep 2024 08:16:03 +0200 Subject: [PATCH] libs/libm/libm: increase number of 'log' iterations before epsilon relaxation Signed-off-by: Petro Karashchenko --- libs/libm/libm/lib_log.c | 2 +- libs/libm/libm/lib_logf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libm/libm/lib_log.c b/libs/libm/libm/lib_log.c index 87a1744972..e23bcff973 100644 --- a/libs/libm/libm/lib_log.c +++ b/libs/libm/libm/lib_log.c @@ -46,7 +46,7 @@ * todo: might need to adjust the double floating point version too. */ -#define LOG_MAX_ITER 10 +#define LOG_MAX_ITER 400 #define LOG_RELAX_MULTIPLIER 2.0 /**************************************************************************** diff --git a/libs/libm/libm/lib_logf.c b/libs/libm/libm/lib_logf.c index 73b0afbaf1..cef8a1e50e 100644 --- a/libs/libm/libm/lib_logf.c +++ b/libs/libm/libm/lib_logf.c @@ -43,7 +43,7 @@ * todo: might need to adjust the double floating point version too. */ -#define LOGF_MAX_ITER 10 +#define LOGF_MAX_ITER 400 #define LOGF_RELAX_MULTIPLIER 2.0F /****************************************************************************