aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-25 08:38:44 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-25 08:38:44 +0000
commit9df1246a1547064adc827318c4e8644be511244b (patch)
tree2485664e3dcbc69eaed334a39b3748fc6a5ab349 /lib/Support/FileUtilities.cpp
parent24652d16f84e4fd605aaffdd5112a606be6c8074 (diff)
downloadexternal_llvm-9df1246a1547064adc827318c4e8644be511244b.zip
external_llvm-9df1246a1547064adc827318c4e8644be511244b.tar.gz
external_llvm-9df1246a1547064adc827318c4e8644be511244b.tar.bz2
Make the absolute/relative tolerance information easier to read/understand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/FileUtilities.cpp')
-rw-r--r--lib/Support/FileUtilities.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp
index ea7822a..adee22d 100644
--- a/lib/Support/FileUtilities.cpp
+++ b/lib/Support/FileUtilities.cpp
@@ -106,8 +106,9 @@ static bool CompareNumbers(char *&F1P, char *&F2P, char *F1End, char *F2End,
Diff = 0; // Both zero.
if (Diff > RelTolerance) {
if (ErrorMsg) {
- *ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) +
- ": diff = " + ftostr(Diff) + "\n";
+ *ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) + "\n";
+ *ErrorMsg += "abs. diff = " + ftostr(std::abs(V1-V2)) +
+ " rel.diff = " + ftostr(Diff) + "\n";
*ErrorMsg += "Out of tolerance: rel/abs: " + ftostr(RelTolerance) +
"/" + ftostr(AbsTolerance);
}