1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Eliminate a 9640 byte static mutable initialized data item by moving it

to the stack.  This shrinks all llvm tools by 9k, and improves reentrancy.

llvm-svn: 66847
This commit is contained in:
Chris Lattner 2009-03-13 00:03:51 +00:00
parent f835ec9a9d
commit 99b48e57ba

View File

@ -439,8 +439,8 @@ powerOf5(integerPart *dst, unsigned int power)
{ {
static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125, static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
15625, 78125 }; 15625, 78125 };
static integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 }; integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
static unsigned int partsCount[16] = { 1 }; unsigned int partsCount[16] = { 1 };
integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5; integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5;
unsigned int result; unsigned int result;