mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Make the absolute/relative tolerance information easier to read/understand.
llvm-svn: 31908
This commit is contained in:
parent
5ae73ed00d
commit
b1fe5794f7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user