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

Commit 1e1d880

Browse files
clang-format
1 parent 43a8a19 commit 1e1d880

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SYCL/USM/allocator_rebind.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ struct alignas(128) Aligned128 {
2828
template <class T, class Allocator>
2929
void test_align(Allocator alloc, size_t Align) {
3030
std::vector<T *> Ptrs;
31-
for (int i =0; i < 10; ++i)
31+
for (int i = 0; i < 10; ++i)
3232
Ptrs.push_back(alloc.allocate(1));
3333

3434
int NumExactlyAligned = 0;
3535

3636
for (T *Ptr : Ptrs) {
3737
auto Val = reinterpret_cast<uintptr_t>(Ptr);
3838
assert((Val & (Align - 1)) == 0 && "Not properly aligned!");
39-
if ((Val & (Align*2 - 1)) != 0)
39+
if ((Val & (Align * 2 - 1)) != 0)
4040
++NumExactlyAligned;
4141
}
4242

@@ -54,7 +54,6 @@ void test_align(Allocator alloc, size_t Align) {
5454

5555
for (T *Ptr : Ptrs)
5656
alloc.deallocate(Ptr, 1);
57-
5857
}
5958

6059
int main() {

0 commit comments

Comments
 (0)