Delete leftover debugging code from InitializeMathExpData()

Review URL: https://codereview.chromium.org/12858008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14030 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jkummerow@chromium.org 2013-03-21 14:36:07 +00:00
parent bd5ca6e696
commit f5418265c4

View File

@ -927,20 +927,9 @@ void ExternalReference::InitializeMathExpData() {
math_exp_log_table_array = new double[kTableSize]; math_exp_log_table_array = new double[kTableSize];
for (int i = 0; i < kTableSize; i++) { for (int i = 0; i < kTableSize; i++) {
double value = pow(2, i / kTableSizeDouble); double value = pow(2, i / kTableSizeDouble);
uint64_t bits = BitCast<uint64_t, double>(value); uint64_t bits = BitCast<uint64_t, double>(value);
bits &= (static_cast<uint64_t>(1) << 52) - 1; bits &= (static_cast<uint64_t>(1) << 52) - 1;
double mantissa = BitCast<double, uint64_t>(bits); double mantissa = BitCast<double, uint64_t>(bits);
// <just testing>
uint64_t doublebits;
memcpy(&doublebits, &value, sizeof doublebits);
doublebits &= (static_cast<uint64_t>(1) << 52) - 1;
double mantissa2;
memcpy(&mantissa2, &doublebits, sizeof mantissa2);
CHECK_EQ(mantissa, mantissa2);
// </just testing>
math_exp_log_table_array[i] = mantissa; math_exp_log_table_array[i] = mantissa;
} }