MCPcopy Create free account
hub / github.com/apache/arrow / ShiftExecFromOp

Function ShiftExecFromOp

cpp/src/arrow/compute/kernels/scalar_arithmetic.cc:549–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547
548template <template <typename... Args> class KernelGenerator, typename Op>
549ArrayKernelExec ShiftExecFromOp(detail::GetTypeId get_id) {
550 switch (get_id.id) {
551 case Type::INT8:
552 return KernelGenerator<Int8Type, Int8Type, Op>::Exec;
553 case Type::UINT8:
554 return KernelGenerator<UInt8Type, UInt8Type, Op>::Exec;
555 case Type::INT16:
556 return KernelGenerator<Int16Type, Int16Type, Op>::Exec;
557 case Type::UINT16:
558 return KernelGenerator<UInt16Type, UInt16Type, Op>::Exec;
559 case Type::INT32:
560 return KernelGenerator<Int32Type, Int32Type, Op>::Exec;
561 case Type::UINT32:
562 return KernelGenerator<UInt32Type, UInt32Type, Op>::Exec;
563 case Type::INT64:
564 return KernelGenerator<Int64Type, Int64Type, Op>::Exec;
565 case Type::UINT64:
566 return KernelGenerator<UInt64Type, UInt64Type, Op>::Exec;
567 default:
568 DCHECK(false);
569 return nullptr;
570 }
571}
572
573template <template <typename... Args> class KernelGenerator, typename Op>
574ArrayKernelExec GenerateArithmeticFloatingPoint(detail::GetTypeId get_id) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected