llvm.org GIT mirror llvm / 6ac7016
Remove duplicate comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42913 91177308-0d34-0410-b5e6-96231b3b80d8 Neil Booth 13 years ago
1 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
324324 static unsigned int
325325 powerOf5(integerPart *dst, unsigned int power)
326326 {
327 /* A tight upper bound on number of parts required to hold the
328 value pow(5, power) is
329
330 power * 65536 / (28224 * integerPartWidth) + 1
331
332 However, whilst the result may require only N parts, because we
333 are multiplying two values to get it, the multiplication may
334 require N + 1 parts with the excess part being zero (consider
335 the trivial case of 1 * 1, the multiplier requires two parts to
336 hold the single-part result). So we add two to guarantee
337 enough space whilst multiplying. */
338327 static integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
339328 15625, 78125 };
340329 static integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };