Bug 1171180 - Remove trunc from jsmath; r=jorendorff

This commit is contained in:
Kyle Machulis 2015-06-09 14:03:04 -07:00
parent f78320762c
commit b4b1e8538e
2 changed files with 1 additions and 8 deletions

View File

@ -2475,7 +2475,7 @@ fi
dnl Checks for math functions.
dnl ========================================================
AC_CHECK_LIB(m, sin)
AC_CHECK_FUNCS([log2 log1p expm1 sqrt1pm1 acosh asinh atanh trunc cbrt])
AC_CHECK_FUNCS([log2 log1p expm1 sqrt1pm1 acosh asinh atanh cbrt])
dnl check for wcrtomb/mbrtowc

View File

@ -1474,13 +1474,6 @@ js::math_hypot_handle(JSContext* cx, HandleValueArray args, MutableHandleValue r
return true;
}
#if !HAVE_TRUNC
double trunc(double x)
{
return x > 0 ? floor(x) : ceil(x);
}
#endif
double
js::math_trunc_impl(MathCache* cache, double x)
{