Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
s-perron committed Oct 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 23eb126 commit 64d870c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/clang/lib/SPIRV/AlignmentSizeCalculator.cpp
Original file line number Diff line number Diff line change
@@ -25,9 +25,10 @@ inline uint32_t roundToPow2(uint32_t val, uint32_t pow2) {
/// Returns the smallest value greater than or equal to |val| that is a multiple
/// of |multiple|.
inline uint32_t roundToMultiple(uint32_t val, uint32_t multiple) {
if (val == 0) return 0;
uint32_t t = (val-1) / multiple;
return (multiple*(t+1));
if (val == 0)
return 0;
uint32_t t = (val - 1) / multiple;
return (multiple * (t + 1));
}

/// Returns true if the given vector type (of the given size) crosses the

0 comments on commit 64d870c

Please sign in to comment.