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

Function select_stride

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

Source from the content-addressed store, hash-verified

134/// |1|3|5|7|
135template <typename ToInt, int kOffset, typename Int, typename Arch, Int... kShifts>
136ARROW_FORCE_INLINE constexpr auto select_stride(
137 xsimd::batch_constant<Int, Arch, kShifts...>) {
138 static_assert(kOffset < sizeof(ToInt) / sizeof(Int));
139 constexpr auto kStridesArr =
140 select_stride_impl<ToInt, kOffset, sizeof(ToInt) / sizeof(Int)>(
141 std::array{kShifts...});
142 return array_to_batch_constant<kStridesArr, Arch>();
143}
144
145/// Whether we are compiling for the SSE2 or above in the SSE family (not AVX).
146template <typename Arch>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected