Coverage Report

Created: 2026-07-29 17:27

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/util/pdep_unpack.h
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#pragma once
19
20
#if defined(__x86_64__) && (defined(__GNUC__) || defined(__clang__))
21
22
#include <immintrin.h>
23
24
#include <cstddef>
25
#include <cstdint>
26
#include <cstring>
27
#include <limits>
28
#include <type_traits>
29
#include <utility>
30
31
#include "common/config.h"
32
33
namespace doris {
34
35
class PdepUnpack {
36
public:
37
588k
    static bool is_supported() {
38
588k
        return config::enable_bmi2_optimizations && __builtin_cpu_supports("bmi2") &&
39
588k
               __builtin_cpu_supports("avx2");
40
588k
    }
41
42
    template <typename T, int BIT_WIDTH>
43
0
    static constexpr bool is_supported_type() {
44
0
        return BIT_WIDTH > 0 && BIT_WIDTH <= std::numeric_limits<T>::digits &&
45
0
               (std::is_same_v<T, uint8_t> || std::is_same_v<T, uint16_t> ||
46
0
                std::is_same_v<T, uint32_t>);
47
0
    }
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIjLi64EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeItLi64EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack17is_supported_typeIhLi64EEEbv
48
49
    template <typename T, int BIT_WIDTH>
50
0
    static constexpr bool should_use() {
51
0
        // Keep the generic implementation available for benchmarking all supported widths, but
52
0
        // only select PDEP in the production path for widths below 16. These widths can use the
53
0
        // byte/word deposit layouts and the AVX2 widening specializations below. At 16 bits and
54
0
        // above, unpack32() falls back to multiple generic 64-bit PDEP groups per batch and
55
0
        // competes with efficient scalar specializations, including copy-like 16- and 32-bit
56
0
        // cases. Benchmarks with L1-, L2-, and larger working sets show non-monotonic results and
57
0
        // repeatable regressions for multiple high widths. Because the profitable high widths are
58
0
        // CPU- and working-set-dependent, an irregular per-width allowlist would not be portable;
59
0
        // use the scalar implementation conservatively instead.
60
0
        return is_supported_type<T, BIT_WIDTH>() && BIT_WIDTH < 16;
61
0
    }
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIjLi64EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useItLi64EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi0EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi1EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi2EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi3EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi4EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi5EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi6EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi7EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi8EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi9EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi10EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi11EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi12EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi13EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi14EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi15EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi16EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi17EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi18EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi19EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi20EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi21EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi22EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi23EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi24EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi25EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi26EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi27EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi28EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi29EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi30EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi31EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi32EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi33EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi34EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi35EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi36EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi37EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi38EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi39EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi40EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi41EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi42EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi43EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi44EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi45EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi46EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi47EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi48EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi49EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi50EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi51EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi52EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi53EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi54EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi55EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi56EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi57EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi58EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi59EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi60EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi61EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi62EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi63EEEbv
Unexecuted instantiation: _ZN5doris10PdepUnpack10should_useIhLi64EEEbv
62
63
    template <typename T, int BIT_WIDTH>
64
7.04M
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
7.04M
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
7.04M
        if constexpr (std::is_same_v<T, uint8_t>) {
67
2.25k
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
2.25k
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
4.80k
            for (int group = 0; group < 2; ++group) {
70
3.20k
                const int first_value = group * 16;
71
3.20k
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
3.20k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
3.20k
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
3.20k
                uint64_t expanded1 =
75
3.20k
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
3.20k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
3.20k
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
3.20k
                                                 static_cast<int64_t>(expanded0));
79
3.20k
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
3.20k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
3.20k
            }
82
3.89M
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
19.4M
            for (int group = 0; group < 4; ++group) {
84
15.5M
                uint64_t expanded =
85
15.5M
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
15.5M
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
15.5M
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
15.5M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
15.5M
            }
90
3.89M
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
15.6M
            for (int group = 0; group < 4; ++group) {
92
12.5M
                const int first_value = group * 8;
93
12.5M
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
12.5M
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
12.5M
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
12.5M
                uint64_t expanded1 =
97
12.5M
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
12.5M
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
12.5M
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
12.5M
                                                  static_cast<int64_t>(expanded0));
101
12.5M
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
12.5M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
12.5M
            }
104
3.13M
        } else {
105
84
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
84
        }
107
7.04M
    }
_ZN5doris10PdepUnpack8unpack32IjLi1EEEvPKhPT_
Line
Count
Source
64
5.79k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
5.79k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
5.79k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
28.9k
            for (int group = 0; group < 4; ++group) {
84
23.1k
                uint64_t expanded =
85
23.1k
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
23.1k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
23.1k
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
23.1k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
23.1k
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
5.79k
    }
_ZN5doris10PdepUnpack8unpack32IjLi2EEEvPKhPT_
Line
Count
Source
64
532k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
532k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
532k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
2.66M
            for (int group = 0; group < 4; ++group) {
84
2.13M
                uint64_t expanded =
85
2.13M
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
2.13M
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
2.13M
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
2.13M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
2.13M
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
532k
    }
_ZN5doris10PdepUnpack8unpack32IjLi3EEEvPKhPT_
Line
Count
Source
64
722k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
722k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
722k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
3.61M
            for (int group = 0; group < 4; ++group) {
84
2.88M
                uint64_t expanded =
85
2.88M
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
2.88M
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
2.88M
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
2.88M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
2.88M
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
722k
    }
_ZN5doris10PdepUnpack8unpack32IjLi4EEEvPKhPT_
Line
Count
Source
64
1.54M
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
1.54M
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
1.54M
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
7.71M
            for (int group = 0; group < 4; ++group) {
84
6.17M
                uint64_t expanded =
85
6.17M
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
6.17M
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
6.17M
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
6.17M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
6.17M
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
1.54M
    }
_ZN5doris10PdepUnpack8unpack32IjLi5EEEvPKhPT_
Line
Count
Source
64
6.86k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
6.86k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
6.86k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
34.3k
            for (int group = 0; group < 4; ++group) {
84
27.4k
                uint64_t expanded =
85
27.4k
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
27.4k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
27.4k
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
27.4k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
27.4k
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
6.86k
    }
_ZN5doris10PdepUnpack8unpack32IjLi6EEEvPKhPT_
Line
Count
Source
64
1.05M
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
1.05M
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
1.05M
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
5.28M
            for (int group = 0; group < 4; ++group) {
84
4.22M
                uint64_t expanded =
85
4.22M
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
4.22M
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
4.22M
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
4.22M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
4.22M
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
1.05M
    }
_ZN5doris10PdepUnpack8unpack32IjLi7EEEvPKhPT_
Line
Count
Source
64
10.7k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
10.7k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
10.7k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
53.5k
            for (int group = 0; group < 4; ++group) {
84
42.8k
                uint64_t expanded =
85
42.8k
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
42.8k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
42.8k
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
42.8k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
42.8k
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
10.7k
    }
_ZN5doris10PdepUnpack8unpack32IjLi8EEEvPKhPT_
Line
Count
Source
64
20.7k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
20.7k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
20.7k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
103k
            for (int group = 0; group < 4; ++group) {
84
82.8k
                uint64_t expanded =
85
82.8k
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
82.8k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
82.8k
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
82.8k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
82.8k
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
20.7k
    }
_ZN5doris10PdepUnpack8unpack32IjLi9EEEvPKhPT_
Line
Count
Source
64
23.0k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
23.0k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
23.0k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
115k
            for (int group = 0; group < 4; ++group) {
92
92.2k
                const int first_value = group * 8;
93
92.2k
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
92.2k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
92.2k
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
92.2k
                uint64_t expanded1 =
97
92.2k
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
92.2k
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
92.2k
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
92.2k
                                                  static_cast<int64_t>(expanded0));
101
92.2k
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
92.2k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
92.2k
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
23.0k
    }
_ZN5doris10PdepUnpack8unpack32IjLi10EEEvPKhPT_
Line
Count
Source
64
23.5k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
23.5k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
23.5k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
117k
            for (int group = 0; group < 4; ++group) {
92
94.2k
                const int first_value = group * 8;
93
94.2k
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
94.2k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
94.2k
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
94.2k
                uint64_t expanded1 =
97
94.2k
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
94.2k
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
94.2k
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
94.2k
                                                  static_cast<int64_t>(expanded0));
101
94.2k
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
94.2k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
94.2k
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
23.5k
    }
_ZN5doris10PdepUnpack8unpack32IjLi11EEEvPKhPT_
Line
Count
Source
64
288k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
288k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
288k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
1.44M
            for (int group = 0; group < 4; ++group) {
92
1.15M
                const int first_value = group * 8;
93
1.15M
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
1.15M
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
1.15M
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
1.15M
                uint64_t expanded1 =
97
1.15M
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
1.15M
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
1.15M
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
1.15M
                                                  static_cast<int64_t>(expanded0));
101
1.15M
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
1.15M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
1.15M
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
288k
    }
_ZN5doris10PdepUnpack8unpack32IjLi12EEEvPKhPT_
Line
Count
Source
64
2.09M
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
2.09M
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
2.09M
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
10.4M
            for (int group = 0; group < 4; ++group) {
92
8.37M
                const int first_value = group * 8;
93
8.37M
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
8.37M
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
8.37M
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
8.37M
                uint64_t expanded1 =
97
8.37M
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
8.37M
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
8.37M
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
8.37M
                                                  static_cast<int64_t>(expanded0));
101
8.37M
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
8.37M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
8.37M
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
2.09M
    }
_ZN5doris10PdepUnpack8unpack32IjLi13EEEvPKhPT_
Line
Count
Source
64
136k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
136k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
136k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
682k
            for (int group = 0; group < 4; ++group) {
92
545k
                const int first_value = group * 8;
93
545k
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
545k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
545k
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
545k
                uint64_t expanded1 =
97
545k
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
545k
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
545k
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
545k
                                                  static_cast<int64_t>(expanded0));
101
545k
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
545k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
545k
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
136k
    }
_ZN5doris10PdepUnpack8unpack32IjLi14EEEvPKhPT_
Line
Count
Source
64
480k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
480k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
480k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
2.40M
            for (int group = 0; group < 4; ++group) {
92
1.92M
                const int first_value = group * 8;
93
1.92M
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
1.92M
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
1.92M
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
1.92M
                uint64_t expanded1 =
97
1.92M
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
1.92M
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
1.92M
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
1.92M
                                                  static_cast<int64_t>(expanded0));
101
1.92M
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
1.92M
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
1.92M
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
480k
    }
_ZN5doris10PdepUnpack8unpack32IjLi15EEEvPKhPT_
Line
Count
Source
64
91.7k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
91.7k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
91.7k
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
458k
            for (int group = 0; group < 4; ++group) {
92
366k
                const int first_value = group * 8;
93
366k
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
366k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
366k
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
366k
                uint64_t expanded1 =
97
366k
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
366k
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
366k
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
366k
                                                  static_cast<int64_t>(expanded0));
101
366k
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
366k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
366k
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
91.7k
    }
_ZN5doris10PdepUnpack8unpack32ItLi1EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi2EEEvPKhPT_
Line
Count
Source
64
353
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
353
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
353
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
1.05k
            for (int group = 0; group < 2; ++group) {
70
706
                const int first_value = group * 16;
71
706
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
706
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
706
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
706
                uint64_t expanded1 =
75
706
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
706
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
706
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
706
                                                 static_cast<int64_t>(expanded0));
79
706
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
706
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
706
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
353
    }
_ZN5doris10PdepUnpack8unpack32ItLi3EEEvPKhPT_
Line
Count
Source
64
1.17k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
1.17k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
1.17k
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
3.52k
            for (int group = 0; group < 2; ++group) {
70
2.35k
                const int first_value = group * 16;
71
2.35k
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
2.35k
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
2.35k
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
2.35k
                uint64_t expanded1 =
75
2.35k
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
2.35k
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
2.35k
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
2.35k
                                                 static_cast<int64_t>(expanded0));
79
2.35k
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
2.35k
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
2.35k
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
1.17k
    }
_ZN5doris10PdepUnpack8unpack32ItLi4EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi5EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi6EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi7EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi8EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
12
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
36
            for (int group = 0; group < 2; ++group) {
70
24
                const int first_value = group * 16;
71
24
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
24
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
24
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
24
                uint64_t expanded1 =
75
24
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
24
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
24
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
24
                                                 static_cast<int64_t>(expanded0));
79
24
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
24
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
24
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi9EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi10EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi11EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi12EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi13EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi14EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32ItLi15EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
        if constexpr (std::is_same_v<T, uint8_t>) {
67
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
12
        } else {
105
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
12
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi1EEEvPKhPT_
Line
Count
Source
64
2.17k
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
2.17k
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
2.17k
        if constexpr (std::is_same_v<T, uint8_t>) {
67
2.17k
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
2.17k
    }
_ZN5doris10PdepUnpack8unpack32IhLi2EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi3EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi4EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi5EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi6EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi7EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
_ZN5doris10PdepUnpack8unpack32IhLi8EEEvPKhPT_
Line
Count
Source
64
12
    __attribute__((target("bmi2,avx2"))) static void unpack32(const uint8_t* input, T* output) {
65
12
        static_assert(is_supported_type<T, BIT_WIDTH>());
66
12
        if constexpr (std::is_same_v<T, uint8_t>) {
67
12
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
68
        } else if constexpr (std::is_same_v<T, uint16_t> && BIT_WIDTH <= 8) {
69
            for (int group = 0; group < 2; ++group) {
70
                const int first_value = group * 16;
71
                const uint8_t* group_input = input + group * 2 * BIT_WIDTH;
72
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(group_input),
73
                                               pdep_mask<uint8_t, BIT_WIDTH>());
74
                uint64_t expanded1 =
75
                        _pdep_u64(load_packed_group<8 * BIT_WIDTH, 8 * BIT_WIDTH>(group_input),
76
                                  pdep_mask<uint8_t, BIT_WIDTH>());
77
                __m128i packed8 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
78
                                                 static_cast<int64_t>(expanded0));
79
                __m256i unpacked16 = _mm256_cvtepu8_epi16(packed8);
80
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked16);
81
            }
82
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 8) {
83
            for (int group = 0; group < 4; ++group) {
84
                uint64_t expanded =
85
                        _pdep_u64(load_packed_group<0, 8 * BIT_WIDTH>(input + group * BIT_WIDTH),
86
                                  pdep_mask<uint8_t, BIT_WIDTH>());
87
                __m256i unpacked32 = _mm256_cvtepu8_epi32(_mm_cvtsi64_si128(expanded));
88
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + group * 8), unpacked32);
89
            }
90
        } else if constexpr (std::is_same_v<T, uint32_t> && BIT_WIDTH <= 15) {
91
            for (int group = 0; group < 4; ++group) {
92
                const int first_value = group * 8;
93
                const uint8_t* group_input = input + group * BIT_WIDTH;
94
                uint64_t expanded0 = _pdep_u64(load_packed_group<0, 4 * BIT_WIDTH>(group_input),
95
                                               pdep_mask<uint16_t, BIT_WIDTH>());
96
                uint64_t expanded1 =
97
                        _pdep_u64(load_packed_group<4 * BIT_WIDTH, 4 * BIT_WIDTH>(group_input),
98
                                  pdep_mask<uint16_t, BIT_WIDTH>());
99
                __m128i packed16 = _mm_set_epi64x(static_cast<int64_t>(expanded1),
100
                                                  static_cast<int64_t>(expanded0));
101
                __m256i unpacked32 = _mm256_cvtepu16_epi32(packed16);
102
                _mm256_storeu_si256(reinterpret_cast<__m256i*>(output + first_value), unpacked32);
103
            }
104
        } else {
105
            unpack32_with_pdep<T, BIT_WIDTH>(input, output);
106
        }
107
12
    }
108
109
private:
110
    template <typename T, int BIT_WIDTH>
111
40.7M
    static constexpr uint64_t pdep_mask() {
112
40.7M
        constexpr int lane_bits = sizeof(T) * 8;
113
40.7M
        constexpr int lanes = 64 / lane_bits;
114
40.7M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
40.7M
        uint64_t mask = 0;
116
265M
        for (int lane = 0; lane < lanes; ++lane) {
117
225M
            mask |= value_mask << (lane * lane_bits);
118
225M
        }
119
40.7M
        return mask;
120
40.7M
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi1EEEmv
Line
Count
Source
111
31.9k
    static constexpr uint64_t pdep_mask() {
112
31.9k
        constexpr int lane_bits = sizeof(T) * 8;
113
31.9k
        constexpr int lanes = 64 / lane_bits;
114
31.9k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
31.9k
        uint64_t mask = 0;
116
287k
        for (int lane = 0; lane < lanes; ++lane) {
117
255k
            mask |= value_mask << (lane * lane_bits);
118
255k
        }
119
31.9k
        return mask;
120
31.9k
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi2EEEmv
Line
Count
Source
111
2.13M
    static constexpr uint64_t pdep_mask() {
112
2.13M
        constexpr int lane_bits = sizeof(T) * 8;
113
2.13M
        constexpr int lanes = 64 / lane_bits;
114
2.13M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
2.13M
        uint64_t mask = 0;
116
19.1M
        for (int lane = 0; lane < lanes; ++lane) {
117
17.0M
            mask |= value_mask << (lane * lane_bits);
118
17.0M
        }
119
2.13M
        return mask;
120
2.13M
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi3EEEmv
Line
Count
Source
111
2.89M
    static constexpr uint64_t pdep_mask() {
112
2.89M
        constexpr int lane_bits = sizeof(T) * 8;
113
2.89M
        constexpr int lanes = 64 / lane_bits;
114
2.89M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
2.89M
        uint64_t mask = 0;
116
26.0M
        for (int lane = 0; lane < lanes; ++lane) {
117
23.1M
            mask |= value_mask << (lane * lane_bits);
118
23.1M
        }
119
2.89M
        return mask;
120
2.89M
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi4EEEmv
Line
Count
Source
111
6.17M
    static constexpr uint64_t pdep_mask() {
112
6.17M
        constexpr int lane_bits = sizeof(T) * 8;
113
6.17M
        constexpr int lanes = 64 / lane_bits;
114
6.17M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
6.17M
        uint64_t mask = 0;
116
55.5M
        for (int lane = 0; lane < lanes; ++lane) {
117
49.3M
            mask |= value_mask << (lane * lane_bits);
118
49.3M
        }
119
6.17M
        return mask;
120
6.17M
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi5EEEmv
Line
Count
Source
111
27.5k
    static constexpr uint64_t pdep_mask() {
112
27.5k
        constexpr int lane_bits = sizeof(T) * 8;
113
27.5k
        constexpr int lanes = 64 / lane_bits;
114
27.5k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
27.5k
        uint64_t mask = 0;
116
247k
        for (int lane = 0; lane < lanes; ++lane) {
117
220k
            mask |= value_mask << (lane * lane_bits);
118
220k
        }
119
27.5k
        return mask;
120
27.5k
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi6EEEmv
Line
Count
Source
111
4.22M
    static constexpr uint64_t pdep_mask() {
112
4.22M
        constexpr int lane_bits = sizeof(T) * 8;
113
4.22M
        constexpr int lanes = 64 / lane_bits;
114
4.22M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
4.22M
        uint64_t mask = 0;
116
38.0M
        for (int lane = 0; lane < lanes; ++lane) {
117
33.8M
            mask |= value_mask << (lane * lane_bits);
118
33.8M
        }
119
4.22M
        return mask;
120
4.22M
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi7EEEmv
Line
Count
Source
111
42.9k
    static constexpr uint64_t pdep_mask() {
112
42.9k
        constexpr int lane_bits = sizeof(T) * 8;
113
42.9k
        constexpr int lanes = 64 / lane_bits;
114
42.9k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
42.9k
        uint64_t mask = 0;
116
386k
        for (int lane = 0; lane < lanes; ++lane) {
117
343k
            mask |= value_mask << (lane * lane_bits);
118
343k
        }
119
42.9k
        return mask;
120
42.9k
    }
_ZN5doris10PdepUnpack9pdep_maskIhLi8EEEmv
Line
Count
Source
111
82.8k
    static constexpr uint64_t pdep_mask() {
112
82.8k
        constexpr int lane_bits = sizeof(T) * 8;
113
82.8k
        constexpr int lanes = 64 / lane_bits;
114
82.8k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
82.8k
        uint64_t mask = 0;
116
746k
        for (int lane = 0; lane < lanes; ++lane) {
117
663k
            mask |= value_mask << (lane * lane_bits);
118
663k
        }
119
82.8k
        return mask;
120
82.8k
    }
_ZN5doris10PdepUnpack9pdep_maskItLi9EEEmv
Line
Count
Source
111
184k
    static constexpr uint64_t pdep_mask() {
112
184k
        constexpr int lane_bits = sizeof(T) * 8;
113
184k
        constexpr int lanes = 64 / lane_bits;
114
184k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
184k
        uint64_t mask = 0;
116
922k
        for (int lane = 0; lane < lanes; ++lane) {
117
738k
            mask |= value_mask << (lane * lane_bits);
118
738k
        }
119
184k
        return mask;
120
184k
    }
_ZN5doris10PdepUnpack9pdep_maskItLi10EEEmv
Line
Count
Source
111
188k
    static constexpr uint64_t pdep_mask() {
112
188k
        constexpr int lane_bits = sizeof(T) * 8;
113
188k
        constexpr int lanes = 64 / lane_bits;
114
188k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
188k
        uint64_t mask = 0;
116
943k
        for (int lane = 0; lane < lanes; ++lane) {
117
754k
            mask |= value_mask << (lane * lane_bits);
118
754k
        }
119
188k
        return mask;
120
188k
    }
_ZN5doris10PdepUnpack9pdep_maskItLi11EEEmv
Line
Count
Source
111
2.30M
    static constexpr uint64_t pdep_mask() {
112
2.30M
        constexpr int lane_bits = sizeof(T) * 8;
113
2.30M
        constexpr int lanes = 64 / lane_bits;
114
2.30M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
2.30M
        uint64_t mask = 0;
116
11.5M
        for (int lane = 0; lane < lanes; ++lane) {
117
9.21M
            mask |= value_mask << (lane * lane_bits);
118
9.21M
        }
119
2.30M
        return mask;
120
2.30M
    }
_ZN5doris10PdepUnpack9pdep_maskItLi12EEEmv
Line
Count
Source
111
16.7M
    static constexpr uint64_t pdep_mask() {
112
16.7M
        constexpr int lane_bits = sizeof(T) * 8;
113
16.7M
        constexpr int lanes = 64 / lane_bits;
114
16.7M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
16.7M
        uint64_t mask = 0;
116
83.6M
        for (int lane = 0; lane < lanes; ++lane) {
117
66.9M
            mask |= value_mask << (lane * lane_bits);
118
66.9M
        }
119
16.7M
        return mask;
120
16.7M
    }
_ZN5doris10PdepUnpack9pdep_maskItLi13EEEmv
Line
Count
Source
111
1.09M
    static constexpr uint64_t pdep_mask() {
112
1.09M
        constexpr int lane_bits = sizeof(T) * 8;
113
1.09M
        constexpr int lanes = 64 / lane_bits;
114
1.09M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
1.09M
        uint64_t mask = 0;
116
5.45M
        for (int lane = 0; lane < lanes; ++lane) {
117
4.36M
            mask |= value_mask << (lane * lane_bits);
118
4.36M
        }
119
1.09M
        return mask;
120
1.09M
    }
_ZN5doris10PdepUnpack9pdep_maskItLi14EEEmv
Line
Count
Source
111
3.84M
    static constexpr uint64_t pdep_mask() {
112
3.84M
        constexpr int lane_bits = sizeof(T) * 8;
113
3.84M
        constexpr int lanes = 64 / lane_bits;
114
3.84M
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
3.84M
        uint64_t mask = 0;
116
19.2M
        for (int lane = 0; lane < lanes; ++lane) {
117
15.3M
            mask |= value_mask << (lane * lane_bits);
118
15.3M
        }
119
3.84M
        return mask;
120
3.84M
    }
_ZN5doris10PdepUnpack9pdep_maskItLi15EEEmv
Line
Count
Source
111
733k
    static constexpr uint64_t pdep_mask() {
112
733k
        constexpr int lane_bits = sizeof(T) * 8;
113
733k
        constexpr int lanes = 64 / lane_bits;
114
733k
        constexpr uint64_t value_mask = (1ULL << BIT_WIDTH) - 1;
115
733k
        uint64_t mask = 0;
116
3.66M
        for (int lane = 0; lane < lanes; ++lane) {
117
2.93M
            mask |= value_mask << (lane * lane_bits);
118
2.93M
        }
119
733k
        return mask;
120
733k
    }
121
122
    template <int BIT_OFFSET, int PACKED_BITS>
123
40.7M
    static uint64_t load_packed_group(const uint8_t* input) {
124
40.7M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
40.7M
        constexpr int shift = BIT_OFFSET % 8;
126
40.7M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
40.7M
        static_assert(PACKED_BITS <= 64);
128
40.7M
        static_assert(bytes_needed <= 9);
129
130
40.7M
        uint64_t low = 0;
131
40.7M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
40.7M
        if constexpr (bytes_needed <= 8) {
133
40.7M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
40.7M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi8EEEmPKh
Line
Count
Source
123
25.3k
    static uint64_t load_packed_group(const uint8_t* input) {
124
25.3k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
25.3k
        constexpr int shift = BIT_OFFSET % 8;
126
25.3k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
25.3k
        static_assert(PACKED_BITS <= 64);
128
25.3k
        static_assert(bytes_needed <= 9);
129
130
25.3k
        uint64_t low = 0;
131
25.3k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
25.3k
        if constexpr (bytes_needed <= 8) {
133
25.3k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
25.3k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi16EEEmPKh
Line
Count
Source
123
2.13M
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.13M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.13M
        constexpr int shift = BIT_OFFSET % 8;
126
2.13M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.13M
        static_assert(PACKED_BITS <= 64);
128
2.13M
        static_assert(bytes_needed <= 9);
129
130
2.13M
        uint64_t low = 0;
131
18.4E
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.13M
        if constexpr (bytes_needed <= 8) {
133
2.13M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.13M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi24EEEmPKh
Line
Count
Source
123
2.89M
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.89M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.89M
        constexpr int shift = BIT_OFFSET % 8;
126
2.89M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.89M
        static_assert(PACKED_BITS <= 64);
128
2.89M
        static_assert(bytes_needed <= 9);
129
130
2.89M
        uint64_t low = 0;
131
2.89M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.89M
        if constexpr (bytes_needed <= 8) {
133
2.89M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.89M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi32EEEmPKh
Line
Count
Source
123
6.17M
    static uint64_t load_packed_group(const uint8_t* input) {
124
6.17M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
6.17M
        constexpr int shift = BIT_OFFSET % 8;
126
6.17M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
6.17M
        static_assert(PACKED_BITS <= 64);
128
6.17M
        static_assert(bytes_needed <= 9);
129
130
6.17M
        uint64_t low = 0;
131
6.17M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
6.17M
        if constexpr (bytes_needed <= 8) {
133
6.17M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
6.17M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi40EEEmPKh
Line
Count
Source
123
121k
    static uint64_t load_packed_group(const uint8_t* input) {
124
121k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
121k
        constexpr int shift = BIT_OFFSET % 8;
126
121k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
121k
        static_assert(PACKED_BITS <= 64);
128
121k
        static_assert(bytes_needed <= 9);
129
130
121k
        uint64_t low = 0;
131
121k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
121k
        if constexpr (bytes_needed <= 8) {
133
121k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
121k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi48EEEmPKh
Line
Count
Source
123
12.5M
    static uint64_t load_packed_group(const uint8_t* input) {
124
12.5M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12.5M
        constexpr int shift = BIT_OFFSET % 8;
126
12.5M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12.5M
        static_assert(PACKED_BITS <= 64);
128
12.5M
        static_assert(bytes_needed <= 9);
129
130
12.5M
        uint64_t low = 0;
131
18.4E
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12.5M
        if constexpr (bytes_needed <= 8) {
133
12.5M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12.5M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi56EEEmPKh
Line
Count
Source
123
1.96M
    static uint64_t load_packed_group(const uint8_t* input) {
124
1.96M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
1.96M
        constexpr int shift = BIT_OFFSET % 8;
126
1.96M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
1.96M
        static_assert(PACKED_BITS <= 64);
128
1.96M
        static_assert(bytes_needed <= 9);
129
130
1.96M
        uint64_t low = 0;
131
1.96M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
1.96M
        if constexpr (bytes_needed <= 8) {
133
1.96M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
1.96M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi64EEEmPKh
Line
Count
Source
123
82.8k
    static uint64_t load_packed_group(const uint8_t* input) {
124
82.8k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
82.8k
        constexpr int shift = BIT_OFFSET % 8;
126
82.8k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
82.8k
        static_assert(PACKED_BITS <= 64);
128
82.8k
        static_assert(bytes_needed <= 9);
129
130
82.8k
        uint64_t low = 0;
131
82.8k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
82.8k
        if constexpr (bytes_needed <= 8) {
133
82.8k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
82.8k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi36EEEmPKh
Line
Count
Source
123
92.2k
    static uint64_t load_packed_group(const uint8_t* input) {
124
92.2k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
92.2k
        constexpr int shift = BIT_OFFSET % 8;
126
92.2k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
92.2k
        static_assert(PACKED_BITS <= 64);
128
92.2k
        static_assert(bytes_needed <= 9);
129
130
92.2k
        uint64_t low = 0;
131
92.2k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
92.2k
        if constexpr (bytes_needed <= 8) {
133
92.2k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
92.2k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi36ELi36EEEmPKh
Line
Count
Source
123
92.2k
    static uint64_t load_packed_group(const uint8_t* input) {
124
92.2k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
92.2k
        constexpr int shift = BIT_OFFSET % 8;
126
92.2k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
92.2k
        static_assert(PACKED_BITS <= 64);
128
92.2k
        static_assert(bytes_needed <= 9);
129
130
92.2k
        uint64_t low = 0;
131
92.2k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
92.2k
        if constexpr (bytes_needed <= 8) {
133
92.2k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
92.2k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi40ELi40EEEmPKh
Line
Count
Source
123
94.3k
    static uint64_t load_packed_group(const uint8_t* input) {
124
94.3k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
94.3k
        constexpr int shift = BIT_OFFSET % 8;
126
94.3k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
94.3k
        static_assert(PACKED_BITS <= 64);
128
94.3k
        static_assert(bytes_needed <= 9);
129
130
94.3k
        uint64_t low = 0;
131
94.3k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
94.3k
        if constexpr (bytes_needed <= 8) {
133
94.3k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
94.3k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi44EEEmPKh
Line
Count
Source
123
1.15M
    static uint64_t load_packed_group(const uint8_t* input) {
124
1.15M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
1.15M
        constexpr int shift = BIT_OFFSET % 8;
126
1.15M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
1.15M
        static_assert(PACKED_BITS <= 64);
128
1.15M
        static_assert(bytes_needed <= 9);
129
130
1.15M
        uint64_t low = 0;
131
1.15M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
1.15M
        if constexpr (bytes_needed <= 8) {
133
1.15M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
1.15M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi44ELi44EEEmPKh
Line
Count
Source
123
1.15M
    static uint64_t load_packed_group(const uint8_t* input) {
124
1.15M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
1.15M
        constexpr int shift = BIT_OFFSET % 8;
126
1.15M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
1.15M
        static_assert(PACKED_BITS <= 64);
128
1.15M
        static_assert(bytes_needed <= 9);
129
130
1.15M
        uint64_t low = 0;
131
1.15M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
1.15M
        if constexpr (bytes_needed <= 8) {
133
1.15M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
1.15M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi48ELi48EEEmPKh
Line
Count
Source
123
8.37M
    static uint64_t load_packed_group(const uint8_t* input) {
124
8.37M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
8.37M
        constexpr int shift = BIT_OFFSET % 8;
126
8.37M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
8.37M
        static_assert(PACKED_BITS <= 64);
128
8.37M
        static_assert(bytes_needed <= 9);
129
130
8.37M
        uint64_t low = 0;
131
18.4E
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
8.37M
        if constexpr (bytes_needed <= 8) {
133
8.37M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
8.37M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi52EEEmPKh
Line
Count
Source
123
545k
    static uint64_t load_packed_group(const uint8_t* input) {
124
545k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
545k
        constexpr int shift = BIT_OFFSET % 8;
126
545k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
545k
        static_assert(PACKED_BITS <= 64);
128
545k
        static_assert(bytes_needed <= 9);
129
130
545k
        uint64_t low = 0;
131
545k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
545k
        if constexpr (bytes_needed <= 8) {
133
545k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
545k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi52ELi52EEEmPKh
Line
Count
Source
123
545k
    static uint64_t load_packed_group(const uint8_t* input) {
124
545k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
545k
        constexpr int shift = BIT_OFFSET % 8;
126
545k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
545k
        static_assert(PACKED_BITS <= 64);
128
545k
        static_assert(bytes_needed <= 9);
129
130
545k
        uint64_t low = 0;
131
545k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
545k
        if constexpr (bytes_needed <= 8) {
133
545k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
545k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi56ELi56EEEmPKh
Line
Count
Source
123
1.92M
    static uint64_t load_packed_group(const uint8_t* input) {
124
1.92M
        constexpr int byte_offset = BIT_OFFSET / 8;
125
1.92M
        constexpr int shift = BIT_OFFSET % 8;
126
1.92M
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
1.92M
        static_assert(PACKED_BITS <= 64);
128
1.92M
        static_assert(bytes_needed <= 9);
129
130
1.92M
        uint64_t low = 0;
131
1.92M
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
1.92M
        if constexpr (bytes_needed <= 8) {
133
1.92M
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
1.92M
    }
_ZN5doris10PdepUnpack17load_packed_groupILi0ELi60EEEmPKh
Line
Count
Source
123
366k
    static uint64_t load_packed_group(const uint8_t* input) {
124
366k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
366k
        constexpr int shift = BIT_OFFSET % 8;
126
366k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
366k
        static_assert(PACKED_BITS <= 64);
128
366k
        static_assert(bytes_needed <= 9);
129
130
366k
        uint64_t low = 0;
131
366k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
366k
        if constexpr (bytes_needed <= 8) {
133
366k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
366k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi60ELi60EEEmPKh
Line
Count
Source
123
366k
    static uint64_t load_packed_group(const uint8_t* input) {
124
366k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
366k
        constexpr int shift = BIT_OFFSET % 8;
126
366k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
366k
        static_assert(PACKED_BITS <= 64);
128
366k
        static_assert(bytes_needed <= 9);
129
130
366k
        uint64_t low = 0;
131
366k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
366k
        if constexpr (bytes_needed <= 8) {
133
366k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
366k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi8ELi8EEEmPKh
Line
Count
Source
123
2.19k
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.19k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.19k
        constexpr int shift = BIT_OFFSET % 8;
126
2.19k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.19k
        static_assert(PACKED_BITS <= 64);
128
2.19k
        static_assert(bytes_needed <= 9);
129
130
2.19k
        uint64_t low = 0;
131
2.19k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.19k
        if constexpr (bytes_needed <= 8) {
133
2.19k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.19k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi16ELi16EEEmPKh
Line
Count
Source
123
718
    static uint64_t load_packed_group(const uint8_t* input) {
124
718
        constexpr int byte_offset = BIT_OFFSET / 8;
125
718
        constexpr int shift = BIT_OFFSET % 8;
126
718
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
718
        static_assert(PACKED_BITS <= 64);
128
718
        static_assert(bytes_needed <= 9);
129
130
718
        uint64_t low = 0;
131
718
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
718
        if constexpr (bytes_needed <= 8) {
133
718
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
718
    }
_ZN5doris10PdepUnpack17load_packed_groupILi24ELi24EEEmPKh
Line
Count
Source
123
2.36k
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.36k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.36k
        constexpr int shift = BIT_OFFSET % 8;
126
2.36k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.36k
        static_assert(PACKED_BITS <= 64);
128
2.36k
        static_assert(bytes_needed <= 9);
129
130
2.36k
        uint64_t low = 0;
131
2.36k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.36k
        if constexpr (bytes_needed <= 8) {
133
2.36k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.36k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi32ELi32EEEmPKh
Line
Count
Source
123
36
    static uint64_t load_packed_group(const uint8_t* input) {
124
36
        constexpr int byte_offset = BIT_OFFSET / 8;
125
36
        constexpr int shift = BIT_OFFSET % 8;
126
36
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
36
        static_assert(PACKED_BITS <= 64);
128
36
        static_assert(bytes_needed <= 9);
129
130
36
        uint64_t low = 0;
131
36
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
36
        if constexpr (bytes_needed <= 8) {
133
36
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
36
    }
_ZN5doris10PdepUnpack17load_packed_groupILi64ELi64EEEmPKh
Line
Count
Source
123
36
    static uint64_t load_packed_group(const uint8_t* input) {
124
36
        constexpr int byte_offset = BIT_OFFSET / 8;
125
36
        constexpr int shift = BIT_OFFSET % 8;
126
36
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
36
        static_assert(PACKED_BITS <= 64);
128
36
        static_assert(bytes_needed <= 9);
129
130
36
        uint64_t low = 0;
131
36
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
36
        if constexpr (bytes_needed <= 8) {
133
36
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
36
    }
_ZN5doris10PdepUnpack17load_packed_groupILi72ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi108ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi144ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi180ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi216ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi252ELi36EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi80ELi40EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi120ELi40EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi160ELi40EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi200ELi40EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi240ELi40EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi280ELi40EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi88ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi132ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi176ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi220ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi264ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi308ELi44EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi96ELi48EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi144ELi48EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi192ELi48EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi240ELi48EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi288ELi48EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi336ELi48EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi104ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi156ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi208ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi260ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi312ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi364ELi52EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi112ELi56EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi168ELi56EEEmPKh
Line
Count
Source
123
24
    static uint64_t load_packed_group(const uint8_t* input) {
124
24
        constexpr int byte_offset = BIT_OFFSET / 8;
125
24
        constexpr int shift = BIT_OFFSET % 8;
126
24
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
24
        static_assert(PACKED_BITS <= 64);
128
24
        static_assert(bytes_needed <= 9);
129
130
24
        uint64_t low = 0;
131
24
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
24
        if constexpr (bytes_needed <= 8) {
133
24
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
24
    }
_ZN5doris10PdepUnpack17load_packed_groupILi224ELi56EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi280ELi56EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi336ELi56EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi392ELi56EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi120ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi180ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi240ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi300ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi360ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi420ELi60EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi24ELi8EEEmPKh
Line
Count
Source
123
2.17k
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.17k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.17k
        constexpr int shift = BIT_OFFSET % 8;
126
2.17k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.17k
        static_assert(PACKED_BITS <= 64);
128
2.17k
        static_assert(bytes_needed <= 9);
129
130
2.17k
        uint64_t low = 0;
131
2.17k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.17k
        if constexpr (bytes_needed <= 8) {
133
2.17k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.17k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi16ELi8EEEmPKh
Line
Count
Source
123
2.17k
    static uint64_t load_packed_group(const uint8_t* input) {
124
2.17k
        constexpr int byte_offset = BIT_OFFSET / 8;
125
2.17k
        constexpr int shift = BIT_OFFSET % 8;
126
2.17k
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
2.17k
        static_assert(PACKED_BITS <= 64);
128
2.17k
        static_assert(bytes_needed <= 9);
129
130
2.17k
        uint64_t low = 0;
131
2.17k
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
2.17k
        if constexpr (bytes_needed <= 8) {
133
2.17k
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
2.17k
    }
_ZN5doris10PdepUnpack17load_packed_groupILi48ELi16EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi32ELi16EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi72ELi24EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi48ELi24EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi96ELi32EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi64ELi32EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi192ELi64EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
_ZN5doris10PdepUnpack17load_packed_groupILi128ELi64EEEmPKh
Line
Count
Source
123
12
    static uint64_t load_packed_group(const uint8_t* input) {
124
12
        constexpr int byte_offset = BIT_OFFSET / 8;
125
12
        constexpr int shift = BIT_OFFSET % 8;
126
12
        constexpr int bytes_needed = (shift + PACKED_BITS + 7) / 8;
127
12
        static_assert(PACKED_BITS <= 64);
128
12
        static_assert(bytes_needed <= 9);
129
130
12
        uint64_t low = 0;
131
12
        std::memcpy(&low, input + byte_offset, bytes_needed < 8 ? bytes_needed : 8);
132
12
        if constexpr (bytes_needed <= 8) {
133
12
            return low >> shift;
134
        } else {
135
            uint8_t high = input[byte_offset + 8];
136
            return static_cast<uint64_t>((static_cast<unsigned __int128>(high) << 64 | low) >>
137
                                         shift);
138
        }
139
12
    }
140
141
    template <typename T, int BIT_WIDTH, std::size_t GROUP>
142
9.69k
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
9.69k
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
9.69k
        constexpr int first_value = GROUP * lanes;
145
9.69k
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
9.69k
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
9.69k
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
9.69k
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
9.69k
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
9.69k
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi9ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi10ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi11ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi12ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi13ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi14ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm4EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm5EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm6EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupItLi15ELm7EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi1ELm3EEEvPKhPT_
Line
Count
Source
142
2.17k
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
2.17k
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
2.17k
        constexpr int first_value = GROUP * lanes;
145
2.17k
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
2.17k
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
2.17k
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
2.17k
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
2.17k
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
2.17k
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi1ELm2EEEvPKhPT_
Line
Count
Source
142
2.17k
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
2.17k
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
2.17k
        constexpr int first_value = GROUP * lanes;
145
2.17k
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
2.17k
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
2.17k
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
2.17k
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
2.17k
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
2.17k
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi1ELm1EEEvPKhPT_
Line
Count
Source
142
2.17k
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
2.17k
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
2.17k
        constexpr int first_value = GROUP * lanes;
145
2.17k
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
2.17k
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
2.17k
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
2.17k
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
2.17k
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
2.17k
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi1ELm0EEEvPKhPT_
Line
Count
Source
142
2.17k
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
2.17k
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
2.17k
        constexpr int first_value = GROUP * lanes;
145
2.17k
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
2.17k
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
2.17k
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
2.17k
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
2.17k
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
2.17k
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi2ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi2ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi2ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi2ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi3ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi3ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi3ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi3ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi4ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi4ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi4ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi4ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi5ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi5ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi5ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi5ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi6ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi6ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi6ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi6ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi7ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi7ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi7ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi7ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi8ELm3EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi8ELm2EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi8ELm1EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
_ZN5doris10PdepUnpack12unpack_groupIhLi8ELm0EEEvPKhPT_
Line
Count
Source
142
12
    __attribute__((target("bmi2"))) static void unpack_group(const uint8_t* input, T* output) {
143
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
144
12
        constexpr int first_value = GROUP * lanes;
145
12
        constexpr int bit_offset = first_value * BIT_WIDTH;
146
12
        constexpr int packed_bits = lanes * BIT_WIDTH;
147
12
        uint64_t packed = load_packed_group<bit_offset, packed_bits>(input);
148
12
        uint64_t expanded = _pdep_u64(packed, pdep_mask<T, BIT_WIDTH>());
149
12
        std::memcpy(output + first_value, &expanded, sizeof(expanded));
150
12
    }
151
152
    template <typename T, int BIT_WIDTH, std::size_t... GROUPS>
153
    __attribute__((target("bmi2"))) static void unpack32_with_pdep_impl(
154
2.34k
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
2.34k
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
2.34k
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi9EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi11EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi12EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi13EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implItLi15EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi1EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
2.17k
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
2.17k
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
2.17k
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi2EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi3EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi4EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi5EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi6EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi7EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
_ZN5doris10PdepUnpack23unpack32_with_pdep_implIhLi8EJLm0ELm1ELm2ELm3EEEEvPKhPT_St16integer_sequenceImJXspT1_EEE
Line
Count
Source
154
12
            const uint8_t* input, T* output, std::index_sequence<GROUPS...>) {
155
12
        (unpack_group<T, BIT_WIDTH, GROUPS>(input, output), ...);
156
12
    }
157
158
    template <typename T, int BIT_WIDTH>
159
    __attribute__((target("bmi2"))) static void unpack32_with_pdep(const uint8_t* input,
160
2.34k
                                                                   T* output) {
161
2.34k
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
2.34k
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
2.34k
                                              std::make_index_sequence<32 / lanes> {});
164
2.34k
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi9EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi10EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi11EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi12EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi13EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi14EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepItLi15EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi1EEEvPKhPT_
Line
Count
Source
160
2.17k
                                                                   T* output) {
161
2.17k
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
2.17k
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
2.17k
                                              std::make_index_sequence<32 / lanes> {});
164
2.17k
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi2EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi3EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi4EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi5EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi6EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi7EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
_ZN5doris10PdepUnpack18unpack32_with_pdepIhLi8EEEvPKhPT_
Line
Count
Source
160
12
                                                                   T* output) {
161
12
        constexpr int lanes = 64 / (sizeof(T) * 8);
162
12
        unpack32_with_pdep_impl<T, BIT_WIDTH>(input, output,
163
12
                                              std::make_index_sequence<32 / lanes> {});
164
12
    }
165
};
166
167
} // namespace doris
168
169
#endif