Skip to content

Commit 24d14d8

Browse files
committed
80 colums
1 parent 173948b commit 24d14d8

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

tools/clang/unittests/HLSLExec/ExecutionTest.cpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11482,9 +11482,9 @@ struct LongVectorOpTestConfig
1148211482
LongVectorOpType OpType = LongVectorOpType_UnInitialized;
1148311483
};
1148411484

11485-
// A helper class to generate deterministic random numbers.
11486-
// For any given seed the generated sequence will always be the same.
11487-
// Each call to generate() will return the next number in the sequence.
11485+
// A helper class to generate deterministic random numbers. For any given seed
11486+
// the generated sequence will always be the same. Each call to generate() will
11487+
// return the next number in the sequence.
1148811488
template <typename T>
1148911489
class DeterministicNumberGenerator {
1149011490
public:
@@ -11493,8 +11493,8 @@ class DeterministicNumberGenerator {
1149311493
DXHalfDist = std::uniform_int_distribution<DirectX::PackedVector::HALF>(
1149411494
HALF_MIN, HALF_MAX);
1149511495
else if constexpr (std::is_same_v<T, HLSLBool_t>)
11496-
// Anything non-zero, including negative values, is true as a bool.
11497-
// So 0 and 1 are all we need.
11496+
// Anything non-zero, including negative values, is true as a bool. So 0
11497+
// and 1 are all we need.
1149811498
Uint16Dist = std::uniform_int_distribution<uint16_t>(0, 1);
1149911499
else if constexpr (std::is_same_v<T, int16_t>)
1150011500
Int16Dist = std::uniform_int_distribution<int16_t>(std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
@@ -11509,10 +11509,14 @@ class DeterministicNumberGenerator {
1150911509
else if constexpr (std::is_same_v<T, uint64_t>)
1151011510
Uint64Dist = std::uniform_int_distribution<T>(std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
1151111511
else if constexpr (std::is_same_v<T, float>)
11512-
// TODO before PR completed ::min is the lowest postivie value. Passing ::lowest was causing an assert in the distribution. Need to look further into why
11512+
// TODO before PR completed ::min is the lowest postivie value. Passing
11513+
// ::lowest was causing an assert in the distribution. Need to look
11514+
// further into why
1151311515
FloatDist = std::uniform_real_distribution<T>(std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
1151411516
else if constexpr (std::is_same_v<T, double>)
11515-
// TODO before PR completed ::min is the lowest postivie value. Passing ::lowest was causing an assert in the distribution. Need to look further into why
11517+
// TODO before PR completed ::min is the lowest postivie value. Passing
11518+
// ::lowest was causing an assert in the distribution. Need to look
11519+
// further into why
1151611520
DoubleDist = std::uniform_real_distribution<T>(std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
1151711521
else
1151811522
VERIFY_SUCCEEDED(false, "Unsupported type for DeterministicNumberGenerator");

0 commit comments

Comments
 (0)