We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c66c3f commit a19df14Copy full SHA for a19df14
1 file changed
include/dxc/Test/HlslTestUtils.h
@@ -547,10 +547,10 @@ inline bool CompareDoubleULP(
547
548
// For FTZ or Preserve mode, we should get the expected number within
549
// ULPTolerance for any operations.
550
- uint64_t Diff = *((const uint64_t *)&Src) - *((const uint64_t *)&Ref);
+ int64_t Diff = *((const uint64_t *)&Src) - *((const uint64_t *)&Ref);
551
552
- int64_t AbsolutDiff = diff < 0 ? -diff : diff;
553
- return AbsoluteDiff <= (unsigned int64_t)ULPTolerance;
+ uint64_t AbsoluteDiff = Diff < 0 ? -Diff : Diff;
+ return AbsoluteDiff <= (uint64_t)ULPTolerance;
554
}
555
556
inline bool CompareFloatULP(
0 commit comments