Ratio metabench tests split to individual operations

This commit is contained in:
Mateusz Pusz
2019-05-19 17:40:05 +02:00
parent 225696135c
commit 7caadfcd0d
10 changed files with 201 additions and 13 deletions
@@ -0,0 +1,20 @@
#include "std_ratio.h"
<% (1..n).each do |i| %>
struct test<%= i %> {
#if defined(METABENCH)
using r1 = std::ratio<<%= i %>, <%= n + 1 - i %>>;
using r2 = std::ratio<<%= n + 1 - i %>, <%= i %>>;
using r3 = std::ratio_multiply<r1, r2>;
using r4 = std::ratio_divide<r1, r2>;
using r5 = units::common_ratio_t<r1, r2>;
#endif
};
<% end %>
int main()
{
}