remove unneeded branch

This commit is contained in:
Jett 2016-10-20 23:59:02 -05:00
parent 7cc60ccc0a
commit dec60cb66a
2 changed files with 48 additions and 54 deletions

View File

@ -8900,8 +8900,6 @@ skip_loop:
} }
// adjust number by powers of ten specified by format and exponent. // adjust number by powers of ten specified by format and exponent.
if (result != 0.0L)
{
constexpr std::array<long double, 9> powerof10 = { constexpr std::array<long double, 9> powerof10 = {
{1.e1L, 1.e2L, 1.e4L, 1.e8L, 1.e16L, 1.e32L, 1.e64L, 1.e128L, 1.e256L} {1.e1L, 1.e2L, 1.e4L, 1.e8L, 1.e16L, 1.e32L, 1.e64L, 1.e128L, 1.e256L}
}; };
@ -8937,7 +8935,6 @@ skip_loop:
} }
} }
} }
}
return result; return result;
} }

View File

@ -8197,8 +8197,6 @@ skip_loop:
} }
// adjust number by powers of ten specified by format and exponent. // adjust number by powers of ten specified by format and exponent.
if (result != 0.0L)
{
constexpr std::array<long double, 9> powerof10 = { constexpr std::array<long double, 9> powerof10 = {
{1.e1L, 1.e2L, 1.e4L, 1.e8L, 1.e16L, 1.e32L, 1.e64L, 1.e128L, 1.e256L} {1.e1L, 1.e2L, 1.e4L, 1.e8L, 1.e16L, 1.e32L, 1.e64L, 1.e128L, 1.e256L}
}; };
@ -8234,7 +8232,6 @@ skip_loop:
} }
} }
} }
}
return result; return result;
} }