forked from mpusz/mp-units
Ratio metabench tests split to individual operations
This commit is contained in:
@@ -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()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user