Skip to content

Commit fd640c0

Browse files
authored
Fmod perf.cc update (#16)
1 parent 966167e commit fd640c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

perf_test_suite/perf.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ struct div_test
171171
}
172172
};
173173

174+
struct mod_test
175+
{
176+
template<typename value_type>
177+
auto operator()(value_type const & tp)
178+
{
179+
return fmod(tp,tp);
180+
}
181+
};
182+
174183
int main(int argc, char ** argv)
175184
{
176185
cout << test_executor<sin_test>{}("sin") << endl;
@@ -182,6 +191,7 @@ int main(int argc, char ** argv)
182191
cout << test_executor<add_test>{}("add") << endl;
183192
cout << test_executor<mul_test>{}("mul") << endl;
184193
cout << test_executor<div_test>{}("div") << endl;
194+
cout << test_executor<mod_test>{}("mod") << endl;
185195
return EXIT_SUCCESS;
186196
}
187197

0 commit comments

Comments
 (0)