lib_modfl: Use fabsl instead of fabs for long double arguments

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2021-05-05 13:58:33 +03:00 committed by Xiang Xiao
parent a74ea51aae
commit 9b8399effe
1 changed files with 2 additions and 2 deletions

View File

@ -42,12 +42,12 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long double modfl(long double x, long double *iptr)
{
if (fabs(x) >= 4503599627370496.0)
if (fabsl(x) >= 4503599627370496.0)
{
*iptr = x;
return 0.0;
}
else if (fabs(x) < 1.0)
else if (fabsl(x) < 1.0)
{
*iptr = (x * 0.0);
return x;