/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <folly/compression/Select64.h> #include <cstdint> #include <utility> #include <folly/ConstexprMath.h> #include <folly/Portability.h> #include <folly/Utility.h> namespace folly { namespace detail { namespace { constexpr std::uint8_t selectInByte(std::size_t i, std::size_t j) { … } template <std::size_t... I, std::size_t J> constexpr auto makeSelectInByteNestedArray( std::index_sequence<I...>, index_constant<J>) { … } template <typename Is, std::size_t... J> constexpr auto makeSelectInByteArray(Is is, std::index_sequence<J...>) { … } } // namespace FOLLY_STORAGE_CONSTEXPR std::array<std::array<std::uint8_t, 256>, 8> const kSelectInByte = …; } // namespace detail } // namespace folly