fistp t;
}
return t;
+#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
+ TEGRA_ROUND(value);
#elif defined HAVE_LRINT || defined CV_ICC || defined __GNUC__
# ifdef HAVE_TEGRA_OPTIMIZATION
TEGRA_ROUND(value);
#else
double intpart, fractpart;
fractpart = modf(value, &intpart);
- if ((abs(fractpart) != 0.5) || ((((int)intpart) % 2) != 0))
+ if ((fabs(fractpart) != 0.5) || ((((int)intpart) % 2) != 0))
return (int)(value + (value >= 0 ? 0.5 : -0.5));
else
return (int)intpart;
#ifdef HAVE_TEGRA_OPTIMIZATION
- if (tegra::resize(src, dst, inv_scale_x, inv_scale_y, interpolation))
+ if (tegra::resize(src, dst, (float)inv_scale_x, (float)inv_scale_y, interpolation))
return;
#endif