mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -106,8 +106,9 @@ static bool CompareNumbers(char *&F1P, char *&F2P, char *F1End, char *F2End,
|
|||||||
Diff = 0; // Both zero.
|
Diff = 0; // Both zero.
|
||||||
if (Diff > RelTolerance) {
|
if (Diff > RelTolerance) {
|
||||||
if (ErrorMsg) {
|
if (ErrorMsg) {
|
||||||
*ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) +
|
*ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) + "\n";
|
||||||
": diff = " + ftostr(Diff) + "\n";
|
*ErrorMsg += "abs. diff = " + ftostr(std::abs(V1-V2)) +
|
||||||
|
" rel.diff = " + ftostr(Diff) + "\n";
|
||||||
*ErrorMsg += "Out of tolerance: rel/abs: " + ftostr(RelTolerance) +
|
*ErrorMsg += "Out of tolerance: rel/abs: " + ftostr(RelTolerance) +
|
||||||
"/" + ftostr(AbsTolerance);
|
"/" + ftostr(AbsTolerance);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user