R=svenpanne@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/
10825074
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12221
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
+inline double SignedZero(bool negative) {
+ return negative ? uint64_to_double(Double::kSignMask) : 0.0;
+}
+
+
// The fast double-to-unsigned-int conversion routine does not guarantee
// rounding towards zero, or any reasonable value if the argument is larger
// than what fits in an unsigned 32-bit integer.
#define V8_CONVERSIONS_H_
#include "utils.h"
-#include "double.h"
namespace v8 {
namespace internal {
}
-inline double SignedZero(bool negative) {
- return negative ? BitCast<double, uint64_t>(Double::kSignMask) : 0.0;
-}
-
-
// The fast double-to-(unsigned-)int conversion routine does not guarantee
// rounding towards zero.
// For NaN and values outside the int range, return INT_MIN or INT_MAX.