| 161 | // trig types |
| 162 | template <typename TT> |
| 163 | void addFunctionTrig(Module & mod, const ModuleLibrary & lib) { |
| 164 | // policy ret arg1 arg2 name |
| 165 | mod.addFunction( (new BuiltInFn<Sim_Sin<TT>, TT, TT>("sin", lib, "Sin"))->arg("x") ); |
| 166 | mod.addFunction( (new BuiltInFn<Sim_Cos<TT>, TT, TT>("cos", lib, "Cos"))->arg("x") ); |
| 167 | mod.addFunction( (new BuiltInFn<Sim_Tan<TT>, TT, TT>("tan", lib, "Tan"))->arg("x") ); |
| 168 | } |
| 169 | |
| 170 | template <typename TT> |
| 171 | void addFunctionCommonTyped(Module & mod, const ModuleLibrary & lib) { |
nothing calls this directly
no test coverage detected