We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48938c2 commit 8bebfd7Copy full SHA for 8bebfd7
perf_test_suite/perf.cc
@@ -171,6 +171,20 @@ struct div_test
171
}
172
};
173
174
+static fixed_t fmod(fixed_t& a, fixed_t& b)
175
+ {
176
+ return a % b;
177
+ }
178
+
179
+struct mod_test
180
181
+ template<typename value_type>
182
+ auto operator()(value_type const & tp)
183
184
+ return fmod(tp,tp);
185
186
+ };
187
188
int main(int argc, char ** argv)
189
{
190
cout << test_executor<sin_test>{}("sin") << endl;
@@ -182,6 +196,7 @@ int main(int argc, char ** argv)
196
cout << test_executor<add_test>{}("add") << endl;
197
cout << test_executor<mul_test>{}("mul") << endl;
198
cout << test_executor<div_test>{}("div") << endl;
199
+ cout << test_executor<mod_test>{}("mod") << endl;
200
return EXIT_SUCCESS;
201
202
0 commit comments