diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-13 00:24:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 00:24:01 +0000 |
| commit | b858c0eba0ba65aaa6cce7b6d9279f3fe98d44ae (patch) | |
| tree | 6b6fb04da57af423b0187bfd2219dc7380895ea5 /llvm/lib/Support/APFloat.cpp | |
| parent | 39eaa7bc67c37ea7126ddeb6922b7283cc6ed5df (diff) | |
| download | llvm-b858c0eba0ba65aaa6cce7b6d9279f3fe98d44ae.zip llvm-b858c0eba0ba65aaa6cce7b6d9279f3fe98d44ae.tar.gz llvm-b858c0eba0ba65aaa6cce7b6d9279f3fe98d44ae.tar.bz2 | |
just initialize the first element, we don't need to set the rest to zeros.
llvm-svn: 66850
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
| -rw-r--r-- | llvm/lib/Support/APFloat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index feb2599..d7f0d82 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -439,12 +439,12 @@ powerOf5(integerPart *dst, unsigned int power) { 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; |
