[llvm-commits] [llvm] r66850 - /llvm/trunk/lib/Support/APFloat.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 12 17:24:01 PDT 2009
Author: lattner
Date: Thu Mar 12 19:24:01 2009
New Revision: 66850
URL: http://llvm.org/viewvc/llvm-project?rev=66850&view=rev
Log:
just initialize the first element, we don't need to set the rest to zeros.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=66850&r1=66849&r2=66850&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Thu Mar 12 19:24:01 2009
@@ -439,12 +439,12 @@
{
static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
15625, 78125 };
- integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
+ integerPart pow5s[maxPowerOfFiveParts * 2 + 5];
+ pow5s[0] = 78125 * 5;
+
unsigned int partsCount[16] = { 1 };
-
integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5;
unsigned int result;
-
assert(power <= maxExponent);
p1 = dst;
More information about the llvm-commits
mailing list