/* * 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/container/detail/F14Table.h> #include <atomic> #include <chrono> namespace folly { namespace f14 { namespace detail { // If you get a link failure that leads you here, your build has varying // compiler flags across compilation units in a way that would break F14. // SIMD (SSE2 or NEON) needs to be either on everywhere or off everywhere // that uses F14. If SIMD is on then hardware CRC needs to be enabled // everywhere or disabled everywhere. void F14LinkCheck<getF14IntrinsicsMode()>::check() noexcept { … } #if FOLLY_F14_VECTOR_INTRINSICS_AVAILABLE EmptyTagVectorType kEmptyTagVector = …; #endif //// Debug and ASAN stuff bool tlsPendingSafeInserts(std::ptrdiff_t delta) { … } std::size_t tlsMinstdRand(std::size_t n) { … } } // namespace detail } // namespace f14 } // namespace folly