mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1171180 - Remove trunc from jsmath; r=jorendorff
This commit is contained in:
parent
f78320762c
commit
b4b1e8538e
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user