Skip to content

Commit a19df14

Browse files
committed
All naming..
1 parent 4c66c3f commit a19df14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/dxc/Test/HlslTestUtils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,10 @@ inline bool CompareDoubleULP(
547547

548548
// For FTZ or Preserve mode, we should get the expected number within
549549
// ULPTolerance for any operations.
550-
uint64_t Diff = *((const uint64_t *)&Src) - *((const uint64_t *)&Ref);
550+
int64_t Diff = *((const uint64_t *)&Src) - *((const uint64_t *)&Ref);
551551

552-
int64_t AbsolutDiff = diff < 0 ? -diff : diff;
553-
return AbsoluteDiff <= (unsigned int64_t)ULPTolerance;
552+
uint64_t AbsoluteDiff = Diff < 0 ? -Diff : Diff;
553+
return AbsoluteDiff <= (uint64_t)ULPTolerance;
554554
}
555555

556556
inline bool CompareFloatULP(

0 commit comments

Comments
 (0)