Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 92c8e96

Browse files
committed
clang-format
1 parent a27450b commit 92c8e96

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

SYCL/BFloat16/bfloat_hw.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,25 @@
66
#include <sycl/sycl.hpp>
77

88
using bfloat16 = sycl::ext::oneapi::experimental::bfloat16;
9-
using Bfloat16StorageT = typename std::invoke_result_t<decltype(&bfloat16::raw), bfloat16>;
9+
using Bfloat16StorageT =
10+
typename std::invoke_result_t<decltype(&bfloat16::raw), bfloat16>;
1011

1112
bool test(float Val, Bfloat16StorageT Bits) {
12-
std::cout << "Value: " << Val << " Bits: " << std::hex << "0x" << Bits << std::dec << "...\n";
13+
std::cout << "Value: " << Val << " Bits: " << std::hex << "0x" << Bits
14+
<< std::dec << "...\n";
1315
bool passed = true;
1416
{
1517
std::cout << " float -> bfloat16 conversion ...";
1618
Bfloat16StorageT RawVal = bfloat16(Val).raw();
1719
bool Res = (RawVal == Bits);
1820
passed &= Res;
19-
21+
2022
if (Res) {
2123
std::cout << "passed\n";
2224
} else {
23-
std::cout << "failed. " << std::hex << "0x" << RawVal << " != " << "0x" << Bits << "(gold)\n" << std::dec;
25+
std::cout << "failed. " << std::hex << "0x" << RawVal << " != "
26+
<< "0x" << Bits << "(gold)\n"
27+
<< std::dec;
2428
}
2529
}
2630
{
@@ -31,8 +35,7 @@ bool test(float Val, Bfloat16StorageT Bits) {
3135

3236
if (Res) {
3337
std::cout << "passed\n";
34-
}
35-
else {
38+
} else {
3639
std::cout << "failed. " << Val << "(Gold) != " << NewVal << "\n";
3740
}
3841
}

0 commit comments

Comments
 (0)