Skip to content

Commit 2996a9c

Browse files
committed
fmt
1 parent d374a28 commit 2996a9c

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

cpp/src/arrow/util/bpacking.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>},

cpp/src/arrow/util/bpacking_simd_kernel_internal.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,16 +842,15 @@ struct ForwardToKernel : WorkingKernel {
842842
// Benchmarking show unpack to uint64_t is underperforming on SSE4.2 and Avx2
843843
template <typename Traits, typename Arch = typename Traits::arch_type>
844844
constexpr 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
851851
template <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
857856
template <typename Traits>

0 commit comments

Comments
 (0)