File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ struct UnpackDynamicFunction {
3232 using Implementation = std::pair<DispatchLevel, FunctionType>;
3333
3434 static constexpr auto implementations () {
35- return std::array {
35+ return std::array{
3636#if defined(ARROW_HAVE_SSE4_2)
37- Implementation{DispatchLevel::NONE, &unpack_sse4_2<Uint>},
37+ Implementation{DispatchLevel::NONE, &unpack_sse4_2<Uint>},
3838#else
39- Implementation{DispatchLevel::NONE, &unpack_scalar<Uint>},
39+ Implementation{DispatchLevel::NONE, &unpack_scalar<Uint>},
4040#endif
4141#if defined(ARROW_HAVE_RUNTIME_AVX2)
4242 Implementation{DispatchLevel::AVX2, &unpack_avx2<Uint>},
Original file line number Diff line number Diff line change @@ -842,16 +842,15 @@ struct ForwardToKernel : WorkingKernel {
842842// Benchmarking show unpack to uint64_t is underperforming on SSE4.2 and Avx2
843843template <typename Traits, typename Arch = typename Traits::arch_type>
844844constexpr bool MediumShouldUseUint32 =
845- (HasSse2<Arch> || HasSse2<Arch>)&& //
845+ (HasSse2<Arch> || HasSse2<Arch>) && //
846846 (Traits::kShape .unpacked_byte_size() == sizeof (uint64_t )) &&
847847 (Traits::kShape .packed_bit_size() < 32 ) &&
848848 KernelTraitsWithUnpack<Traits, uint32_t >::kShape .is_medium();
849849
850850// Benchmarking show large unpack to uint8_t is underperforming on SSE4.2
851851template <typename Traits, typename Arch = typename Traits::arch_type>
852- constexpr bool LargeShouldUseUint16 = HasSse2<Arch> &&
853- (Traits::kShape .unpacked_byte_size() ==
854- sizeof (uint8_t ));
852+ constexpr bool LargeShouldUseUint16 =
853+ HasSse2<Arch> && (Traits::kShape .unpacked_byte_size() == sizeof (uint8_t ));
855854
856855// A ``std::enable_if`` that works on MSVC
857856template <typename Traits>
You can’t perform that action at this time.
0 commit comments