Skip to content

Commit 09b48fe

Browse files
committed
Change latest clang-format and Cosmetic change
1 parent 851aa2c commit 09b48fe

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.clang-format

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
---
2-
Language: Cpp
31
BasedOnStyle: Google
42
AccessModifierOffset: -4
53
AlignAfterOpenBracket: Align
@@ -164,4 +162,3 @@ StatementMacros:
164162
TabWidth: 4
165163
UseCRLF: false
166164
UseTab: Never
167-
...

src/m5_utility/lfsr.hpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ class FibonacciLFSR_Right {
3131

3232
// Tap boundary check: 1..N-1
3333
template <uint32_t...>
34-
struct all_valid : std::true_type {};
34+
struct all_valid : std::true_type {
35+
//
36+
};
3537
template <uint32_t A, uint32_t... Rest>
36-
struct all_valid<A, Rest...> : std::integral_constant<bool, (A >= 1 && A <= N) && all_valid<Rest...>::value> {};
38+
struct all_valid<A, Rest...> : std::integral_constant<bool, (A >= 1 && A <= N) && all_valid<Rest...>::value> {
39+
//
40+
};
3741
static_assert(all_valid<Taps...>::value, "Taps out of range");
3842

3943
protected:
@@ -143,9 +147,13 @@ class FibonacciLFSR_Left {
143147

144148
// Tap boundary check: 1..N-1
145149
template <uint32_t...>
146-
struct all_valid : std::true_type {};
150+
struct all_valid : std::true_type {
151+
//
152+
};
147153
template <uint32_t A, uint32_t... Rest>
148-
struct all_valid<A, Rest...> : std::integral_constant<bool, (A >= 1 && A <= N) && all_valid<Rest...>::value> {};
154+
struct all_valid<A, Rest...> : std::integral_constant<bool, (A >= 1 && A <= N) && all_valid<Rest...>::value> {
155+
//
156+
};
149157
static_assert(all_valid<Taps...>::value, "Taps out of range");
150158

151159
protected:

0 commit comments

Comments
 (0)