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

Function max_value

cpp/src/arrow/util/bpacking_simd_kernel_internal.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63/// Simple constexpr maximum element suited for non empty arrays.
64template <typename T, std::size_t N>
65ARROW_FORCE_INLINE constexpr T max_value(const std::array<T, N>& arr) {
66 static_assert(N > 0);
67 T out = 0;
68 for (const T& v : arr) {
69 if (v > out) {
70 out = v;
71 }
72 }
73 return out;
74}
75
76template <std::array kArr, typename Arch, std::size_t... Is>
77ARROW_FORCE_INLINE constexpr auto array_to_batch_constant_impl(

Callers 1

right_shift_by_excessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected