File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff 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, ~)
You can’t perform that action at this time.
0 commit comments