Skip to content

Commit eefa04e

Browse files
committed
Clang format
1 parent 842e639 commit eefa04e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

tools/clang/unittests/HLSLExec/LongVectors.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ FLOAT_SPECIAL_OP(OpType::IsNan, (std::isnan(A)));
12651265
// Wave Ops
12661266
//
12671267

1268-
#define WAVE_OP(OP, IMPL) \
1268+
#define WAVE_OP(OP, IMPL) \
12691269
template <typename T> struct Op<OP, T, 1> : DefaultValidation<T> { \
12701270
T operator()(T A, UINT WaveSize) { return IMPL; } \
12711271
};
@@ -1327,7 +1327,6 @@ template <typename T> T waveActiveBitXor(T A, UINT) {
13271327

13281328
WAVE_OP(OpType::WaveActiveBitXor, (waveActiveBitXor(A, WaveSize)));
13291329

1330-
13311330
template <typename T>
13321331
struct Op<OpType::WaveActiveAllEqual, T, 1> : StrictValidation {};
13331332

@@ -1353,8 +1352,7 @@ struct Op<OpType::WaveReadLaneAt, T, 1> : StrictValidation {};
13531352

13541353
template <typename T> struct WaveOpExpectedBuilder<OpType::WaveReadLaneAt, T> {
13551354
static std::vector<T> buildExpected(Op<OpType::WaveReadLaneAt, T, 1> &,
1356-
const InputSets<T> &Inputs,
1357-
UINT) {
1355+
const InputSets<T> &Inputs, UINT) {
13581356
DXASSERT_NOMSG(Inputs.size() == 1);
13591357

13601358
std::vector<T> Expected;
@@ -1373,8 +1371,7 @@ struct Op<OpType::WaveReadLaneFirst, T, 1> : StrictValidation {};
13731371
template <typename T>
13741372
struct WaveOpExpectedBuilder<OpType::WaveReadLaneFirst, T> {
13751373
static std::vector<T> buildExpected(Op<OpType::WaveReadLaneFirst, T, 1> &,
1376-
const InputSets<T> &Inputs,
1377-
UINT) {
1374+
const InputSets<T> &Inputs, UINT) {
13781375
DXASSERT_NOMSG(Inputs.size() == 1);
13791376

13801377
std::vector<T> Expected;
@@ -1391,7 +1388,7 @@ WAVE_OP(OpType::WavePrefixSum, (wavePrefixSum(A, WaveSize)));
13911388

13921389
template <typename T> T wavePrefixSum(T A, UINT WaveSize) {
13931390
// We test the prefix sume in the 'middle' lane. This choice is arbitrary.
1394-
return static_cast<T>(A * static_cast<T>(WaveSize/2));
1391+
return static_cast<T>(A * static_cast<T>(WaveSize / 2));
13951392
}
13961393

13971394
WAVE_OP(OpType::WavePrefixProduct, (wavePrefixProduct(A, WaveSize)));

0 commit comments

Comments
 (0)