[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c
LLVM
llvm at cs.uiuc.edu
Thu Jun 24 01:48:01 PDT 2004
Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac:
cfrac.c updated: 1.1 -> 1.2
---
Log message:
Rename the logf() function so it doesn't conflict with logf(3) on FreeBSD.
Patch submitted by Vladimir Merzilakov. Thanks, Vladimir!
---
Diffs of the changes: (+2 -2)
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c:1.1 Thu Feb 19 15:46:32 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/cfrac.c Thu Jun 24 01:47:29 2004
@@ -79,7 +79,7 @@
return res;
}
-float logf(p, n, k)
+float logf_(p, n, k)
precision n;
unsigned p, k;
{
@@ -138,7 +138,7 @@
sum = 0.0;
primePtr = primes;
while (*primePtr <= maxpm) {
- sum += logf((unsigned) *primePtr++, n, k);
+ sum += logf_((unsigned) *primePtr++, n, k);
}
sum -= log((double) k) * 0.5;
if (verbose > 2) fprintf(stdout, "%u: %5.2f", k, sum);
More information about the llvm-commits
mailing list