F14Table.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2017-present Facebook, Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <folly/container/detail/F14Table.h>
  17. namespace folly {
  18. namespace f14 {
  19. namespace detail {
  20. // If you get a link failure that leads you here, your build has varying
  21. // compiler flags across compilation units in a way that would break F14.
  22. // SIMD (SSE2 or NEON) needs to be either on everywhere or off everywhere
  23. // that uses F14. If SIMD is on then hardware CRC needs to be enabled
  24. // everywhere or disabled everywhere.
  25. void F14LinkCheck<getF14IntrinsicsMode()>::check() noexcept {}
  26. #if FOLLY_F14_VECTOR_INTRINSICS_AVAILABLE
  27. EmptyTagVectorType kEmptyTagVector = {};
  28. #endif
  29. FOLLY_F14_TLS_IF_ASAN std::size_t asanPendingSafeInserts = 0;
  30. FOLLY_F14_TLS_IF_ASAN std::size_t asanRehashState = 0;
  31. } // namespace detail
  32. } // namespace f14
  33. } // namespace folly