| 996 | |
| 997 | template <typename Op> |
| 998 | std::shared_ptr<ScalarFunction> MakeShiftFunctionNotNull(std::string name, |
| 999 | FunctionDoc doc) { |
| 1000 | auto func = std::make_shared<ArithmeticFunction>(name, Arity::Binary(), std::move(doc)); |
| 1001 | for (const auto& ty : IntTypes()) { |
| 1002 | auto exec = ShiftExecFromOp<ScalarBinaryNotNullEqualTypes, Op>(ty); |
| 1003 | DCHECK_OK(func->AddKernel({ty, ty}, ty, exec)); |
| 1004 | } |
| 1005 | AddNullExec(func.get()); |
| 1006 | return func; |
| 1007 | } |
| 1008 | |
| 1009 | template <typename Op, typename FunctionImpl = ArithmeticFloatingPointFunction> |
| 1010 | std::shared_ptr<ScalarFunction> MakeUnaryArithmeticFunctionFloatingPoint( |
nothing calls this directly
no test coverage detected