projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
807926a
)
just initialize the first element, we don't need to set the rest to zeros.
author
Chris Lattner
<sabre@nondot.org>
Fri, 13 Mar 2009 00:24:01 +0000
(
00:24
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 13 Mar 2009 00:24:01 +0000
(
00:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66850
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index feb2599e914074ea99bef2126c77b014db48c063..d7f0d8215987c0a2720eac4cd6ac697747004b00 100644
(file)
--- a/
lib/Support/APFloat.cpp
+++ b/
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;