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

Function GetSafeMinMax

cpp/src/arrow/util/int_util.cc:879–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877
878template <typename InType, typename T = typename InType::c_type>
879void GetSafeMinMax(Type::type out_type, T* min, T* max) {
880 switch (out_type) {
881 GET_MIN_MAX_CASE(INT8, Int8Type);
882 GET_MIN_MAX_CASE(INT16, Int16Type);
883 GET_MIN_MAX_CASE(INT32, Int32Type);
884 GET_MIN_MAX_CASE(INT64, Int64Type);
885 GET_MIN_MAX_CASE(UINT8, UInt8Type);
886 GET_MIN_MAX_CASE(UINT16, UInt16Type);
887 GET_MIN_MAX_CASE(UINT32, UInt32Type);
888 GET_MIN_MAX_CASE(UINT64, UInt64Type);
889 default:
890 break;
891 }
892}
893
894template <typename Type, typename CType = typename Type::c_type,
895 typename ScalarType = typename TypeTraits<Type>::ScalarType>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected