Skip to content

Commit bf2be04

Browse files
committed
indents
1 parent 20e7f42 commit bf2be04

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

inc/zoo/swar/SWAR.h

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,20 @@ struct SWAR {
7171

7272
constexpr T value() const noexcept { return m_v; }
7373

74-
template<std::size_t N>
75-
constexpr static T baseFromLaneLiterals(const T(&args)[N]) {
76-
static_assert(N == Lanes, "Wrong number of lanes");
77-
T result = 0;
78-
for (auto arg: args) {
79-
result = (result << NBits) | arg;
80-
}
81-
return result;
82-
}
83-
84-
template<std::size_t N>
85-
constexpr static SWAR fromLaneLiterals(const T(&args)[N]) {
86-
return SWAR{baseFromLaneLiterals(args)};
87-
}
88-
89-
74+
template<std::size_t N>
75+
constexpr static T baseFromLaneLiterals(const T(&args)[N]) {
76+
static_assert(N == Lanes, "Wrong number of lanes");
77+
T result = 0;
78+
for (auto arg: args) {
79+
result = (result << NBits) | arg;
80+
}
81+
return result;
82+
}
9083

84+
template<std::size_t N>
85+
constexpr static SWAR fromLaneLiterals(const T(&args)[N]) {
86+
return SWAR{baseFromLaneLiterals(args)};
87+
}
9188

9289
#define SWAR_UNARY_OPERATORS_X_LIST \
9390
X(SWAR, ~)

0 commit comments

Comments
 (0)