Use correct type of 'fabs' API in modff, modfl and logf implementations.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
y = -700.0;
}
- epsilon = (fabs(y) > 1.0) ? fabs(y) * FLT_EPSILON : FLT_EPSILON;
+ epsilon = (fabsf(y) > 1.0) ? fabsf(y) * FLT_EPSILON : FLT_EPSILON;
}
if (y == 700.0) {
if (fabsf(x) >= 8388608.0) {
*iptr = x;
return 0.0;
- } else if (fabs(x) < 1.0) {
+ } else if (fabsf(x) < 1.0) {
*iptr = (x * 0.0);
return x;
} else {
#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;
} else {