Commit 35054c8b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Move folly/Bits.h to folly/lang/

Summary: [Folly] Move `folly/Bits.h` to `folly/lang/`.

Reviewed By: phoad, Orvid

Differential Revision: D6495547

fbshipit-source-id: a93159321df8277f8a4b4f10a5e4e0fc58cb6022
parent f193a7e3
...@@ -517,6 +517,9 @@ if (BUILD_TESTS) ...@@ -517,6 +517,9 @@ if (BUILD_TESTS)
DIRECTORY io/async/ssl/test/ DIRECTORY io/async/ssl/test/
TEST ssl_errors_test SOURCES SSLErrorsTest.cpp TEST ssl_errors_test SOURCES SSLErrorsTest.cpp
DIRECTORY lang/test/
TEST bits_test SOURCES BitsTest.cpp
DIRECTORY memory/test/ DIRECTORY memory/test/
TEST arena_test SOURCES ArenaTest.cpp TEST arena_test SOURCES ArenaTest.cpp
TEST thread_cached_arena_test SOURCES ThreadCachedArenaTest.cpp TEST thread_cached_arena_test SOURCES ThreadCachedArenaTest.cpp
...@@ -560,7 +563,6 @@ if (BUILD_TESTS) ...@@ -560,7 +563,6 @@ if (BUILD_TESTS)
TEST atomic_struct_test SOURCES AtomicStructTest.cpp TEST atomic_struct_test SOURCES AtomicStructTest.cpp
TEST atomic_unordered_map_test SOURCES AtomicUnorderedMapTest.cpp TEST atomic_unordered_map_test SOURCES AtomicUnorderedMapTest.cpp
TEST bit_iterator_test SOURCES BitIteratorTest.cpp TEST bit_iterator_test SOURCES BitIteratorTest.cpp
TEST bits_test SOURCES BitsTest.cpp
TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp
TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp
TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <type_traits> #include <type_traits>
#include <folly/Bits.h>
#include <folly/detail/AtomicHashUtils.h> #include <folly/detail/AtomicHashUtils.h>
#include <folly/lang/Bits.h>
namespace folly { namespace folly {
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
#include <boost/type_traits/has_trivial_destructor.hpp> #include <boost/type_traits/has_trivial_destructor.hpp>
#include <folly/Bits.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <folly/detail/AtomicUnorderedMapUtils.h> #include <folly/detail/AtomicUnorderedMapUtils.h>
#include <folly/lang/Bits.h>
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
......
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
#include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_adaptor.hpp>
#include <folly/Bits.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/detail/BitIteratorDetail.h> #include <folly/detail/BitIteratorDetail.h>
#include <folly/lang/Bits.h>
namespace folly { namespace folly {
......
This diff is collapsed.
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#if FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 || FOLLY_AARCH64 #if FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 || FOLLY_AARCH64
#define HAVE_GROUP_VARINT 1 #define HAVE_GROUP_VARINT 1
#include <folly/Bits.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/detail/GroupVarintDetail.h> #include <folly/detail/GroupVarintDetail.h>
#include <folly/lang/Bits.h>
#include <folly/portability/Builtins.h> #include <folly/portability/Builtins.h>
#if FOLLY_SSE >= 3 #if FOLLY_SSE >= 3
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include <iosfwd> #include <iosfwd>
#include <folly/Bits.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/lang/Bits.h>
namespace folly { namespace folly {
......
...@@ -325,6 +325,7 @@ nobase_follyinclude_HEADERS = \ ...@@ -325,6 +325,7 @@ nobase_follyinclude_HEADERS = \
io/async/test/Util.h \ io/async/test/Util.h \
json.h \ json.h \
lang/Assume.h \ lang/Assume.h \
lang/Bits.h \
lang/ColdClass.h \ lang/ColdClass.h \
lang/Launder.h \ lang/Launder.h \
lang/RValueReferenceWrapper.h \ lang/RValueReferenceWrapper.h \
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include <bzlib.h> #include <bzlib.h>
#endif #endif
#include <folly/Bits.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/Portability.h> #include <folly/Portability.h>
...@@ -56,6 +55,7 @@ ...@@ -56,6 +55,7 @@
#include <folly/Varint.h> #include <folly/Varint.h>
#include <folly/compression/Utils.h> #include <folly/compression/Utils.h>
#include <folly/io/Cursor.h> #include <folly/io/Cursor.h>
#include <folly/lang/Bits.h>
#include <algorithm> #include <algorithm>
#include <unordered_set> #include <unordered_set>
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include <type_traits> #include <type_traits>
#include <folly/Bits.h>
#include <folly/io/Cursor.h> #include <folly/io/Cursor.h>
#include <folly/io/IOBuf.h> #include <folly/io/IOBuf.h>
#include <folly/lang/Bits.h>
/** /**
* Helper functions for compression codecs. * Helper functions for compression codecs.
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <limits> #include <limits>
#include <type_traits> #include <type_traits>
#include <folly/Bits.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
...@@ -28,6 +27,7 @@ ...@@ -28,6 +27,7 @@
#include <folly/experimental/CodingDetail.h> #include <folly/experimental/CodingDetail.h>
#include <folly/experimental/Instructions.h> #include <folly/experimental/Instructions.h>
#include <folly/experimental/Select64.h> #include <folly/experimental/Select64.h>
#include <folly/lang/Bits.h>
#include <glog/logging.h> #include <glog/logging.h>
#if !FOLLY_X64 #if !FOLLY_X64
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Bits.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/lang/Bits.h>
namespace folly { namespace folly {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <limits> #include <limits>
#include <type_traits> #include <type_traits>
#include <folly/Bits.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
...@@ -36,6 +35,7 @@ ...@@ -36,6 +35,7 @@
#include <folly/experimental/Instructions.h> #include <folly/experimental/Instructions.h>
#include <folly/experimental/Select64.h> #include <folly/experimental/Select64.h>
#include <folly/lang/Assume.h> #include <folly/lang/Assume.h>
#include <folly/lang/Bits.h>
#include <glog/logging.h> #include <glog/logging.h>
#if !FOLLY_X64 #if !FOLLY_X64
......
...@@ -22,13 +22,12 @@ ...@@ -22,13 +22,12 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Bits.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/detail/Futex.h> #include <folly/detail/Futex.h>
#include <folly/lang/Bits.h>
#include <folly/portability/SysTime.h> #include <folly/portability/SysTime.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
namespace folly { namespace folly {
/** /**
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
#include <folly/Bits.h>
#include <folly/functional/ApplyTuple.h> #include <folly/functional/ApplyTuple.h>
#include <folly/hash/SpookyHashV1.h> #include <folly/hash/SpookyHashV1.h>
#include <folly/hash/SpookyHashV2.h> #include <folly/hash/SpookyHashV2.h>
#include <folly/lang/Bits.h>
/* /*
* Various hashing functions. * Various hashing functions.
......
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
#include <stdexcept> #include <stdexcept>
#include <type_traits> #include <type_traits>
#include <folly/Bits.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/io/IOBuf.h> #include <folly/io/IOBuf.h>
#include <folly/io/IOBufQueue.h> #include <folly/io/IOBufQueue.h>
#include <folly/lang/Bits.h>
#include <folly/portability/BitsFunctexcept.h> #include <folly/portability/BitsFunctexcept.h>
/** /**
......
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
#include <chrono> #include <chrono>
#include <memory> #include <memory>
#include <folly/Bits.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/SocketAddress.h> #include <folly/SocketAddress.h>
#include <folly/SpinLock.h> #include <folly/SpinLock.h>
#include <folly/io/Cursor.h> #include <folly/io/Cursor.h>
#include <folly/io/IOBuf.h> #include <folly/io/IOBuf.h>
#include <folly/lang/Bits.h>
#include <folly/portability/OpenSSL.h> #include <folly/portability/OpenSSL.h>
using folly::SocketAddress; using folly::SocketAddress;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <iomanip> #include <iomanip>
#include <folly/Bits.h>
#include <folly/Optional.h> #include <folly/Optional.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/io/Cursor.h> #include <folly/io/Cursor.h>
...@@ -30,6 +29,7 @@ ...@@ -30,6 +29,7 @@
#include <folly/io/async/ssl/OpenSSLUtils.h> #include <folly/io/async/ssl/OpenSSLUtils.h>
#include <folly/io/async/ssl/SSLErrors.h> #include <folly/io/async/ssl/SSLErrors.h>
#include <folly/io/async/ssl/TLSDefinitions.h> #include <folly/io/async/ssl/TLSDefinitions.h>
#include <folly/lang/Bits.h>
#include <folly/portability/OpenSSL.h> #include <folly/portability/OpenSSL.h>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
#include <folly/ssl/OpenSSLPtrTypes.h> #include <folly/ssl/OpenSSLPtrTypes.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <folly/Optional.h> #include <folly/Optional.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/Bits.h> #include <folly/lang/Bits.h>
#include <cassert> #include <cassert>
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/next_prior.hpp> #include <boost/next_prior.hpp>
#include <folly/Bits.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/lang/Bits.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Range.h> #include <folly/Range.h>
......
This diff is collapsed.
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
// @author Tudor Bosman (tudorb@fb.com) // @author Tudor Bosman (tudorb@fb.com)
#include <folly/Bits.h> #include <folly/lang/Bits.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <random> #include <random>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
// @author Tudor Bosman (tudorb@fb.com) // @author Tudor Bosman (tudorb@fb.com)
#include <folly/Bits.h> #include <folly/lang/Bits.h>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Bits.h> #include <folly/lang/Bits.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
#include <string> #include <string>
#include <folly/BitIterator.h> #include <folly/BitIterator.h>
#include <folly/Bits.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/IPAddress.h> #include <folly/IPAddress.h>
#include <folly/MacAddress.h> #include <folly/MacAddress.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/detail/IPAddressSource.h> #include <folly/detail/IPAddressSource.h>
#include <folly/lang/Bits.h>
#include <folly/portability/GMock.h> #include <folly/portability/GMock.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
#include <vector> #include <vector>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <folly/Bits.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/Subprocess.h> #include <folly/Subprocess.h>
#include <folly/lang/Bits.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <folly/tracing/StaticTracepoint.h> #include <folly/tracing/StaticTracepoint.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment