mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
just initialize the first element, we don't need to set the rest to zeros.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
807926a945
commit
ee167a729e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user