File tree 1 file changed +3
-16
lines changed
lib/evmone_precompiles/pairing
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,7 @@ struct ExtFieldElem
111
111
return ExtFieldElem (v);
112
112
}
113
113
114
- static constexpr ExtFieldElem zero () noexcept
115
- {
116
- std::array<ValueT, DEGREE> v;
117
- for (size_t i = 0 ; i < DEGREE; ++i)
118
- v[i] = ValueT ();
119
-
120
- return ExtFieldElem (v);
121
- }
114
+ static constexpr ExtFieldElem zero () noexcept { return ExtFieldElem{}; }
122
115
123
116
constexpr ExtFieldElem inv () const noexcept { return inverse (*this ); }
124
117
@@ -154,14 +147,8 @@ struct ExtFieldElem
154
147
return ExtFieldElem (std::move (ret));
155
148
}
156
149
157
- friend constexpr bool operator ==(const ExtFieldElem& e1 , const ExtFieldElem& e2 ) noexcept
158
- {
159
- bool res = true ;
160
- for (size_t i = 0 ; i < DEGREE && res; ++i)
161
- res = res && (e1 .coeffs [i] == e2 .coeffs [i]);
162
-
163
- return res;
164
- }
150
+ friend constexpr bool operator ==(
151
+ const ExtFieldElem& e1 , const ExtFieldElem& e2 ) noexcept = default ;
165
152
166
153
friend constexpr ExtFieldElem operator *(const ExtFieldElem& e, const Base& s) noexcept
167
154
{
You can’t perform that action at this time.
0 commit comments