Commit 34a2f64f authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Move folly/Hash.h to folly/hash/

Summary: [Folly] Move `folly/Hash.h` to `folly/hash/`.

Reviewed By: jsedgwick

Differential Revision: D6050464

fbshipit-source-id: 64eb65aac8e3e7cd0126e65ca3998bfe167e2d73
parent af6ddfa2
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
#include <boost/iterator/iterator_facade.hpp> #include <boost/iterator/iterator_facade.hpp>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <folly/Hash.h>
#include <folly/ThreadCachedInt.h> #include <folly/ThreadCachedInt.h>
#include <folly/Utility.h> #include <folly/Utility.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -92,9 +92,9 @@ ...@@ -92,9 +92,9 @@
#include <folly/AtomicHashArray.h> #include <folly/AtomicHashArray.h>
#include <folly/Foreach.h> #include <folly/Foreach.h>
#include <folly/Hash.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/ThreadCachedInt.h> #include <folly/ThreadCachedInt.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include <folly/Hash.h>
#include <folly/Malloc.h> #include <folly/Malloc.h>
#include <folly/Traits.h> #include <folly/Traits.h>
#include <folly/hash/Hash.h>
#include <folly/portability/BitsFunctexcept.h> #include <folly/portability/BitsFunctexcept.h>
// When used in folly, assertions are not disabled. // When used in folly, assertions are not disabled.
......
...@@ -409,7 +409,7 @@ struct ReverseIterator { ...@@ -409,7 +409,7 @@ struct ReverseIterator {
} // namespace fixedstring } // namespace fixedstring
} // namespace detail } // namespace detail
// Defined in folly/Hash.h // Defined in folly/hash/Hash.h
std::uint32_t hsieh_hash32_buf(const void* buf, std::size_t len); std::uint32_t hsieh_hash32_buf(const void* buf, std::size_t len);
/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * /** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *
......
This diff is collapsed.
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
#include <iosfwd> #include <iosfwd>
#include <folly/FBString.h> #include <folly/FBString.h>
#include <folly/Hash.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/detail/IPAddress.h> #include <folly/detail/IPAddress.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
#include <stdexcept> #include <stdexcept>
#include <folly/FBString.h> #include <folly/FBString.h>
#include <folly/Hash.h>
#include <folly/Optional.h> #include <folly/Optional.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/detail/IPAddress.h> #include <folly/detail/IPAddress.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -229,6 +229,7 @@ nobase_follyinclude_HEADERS = \ ...@@ -229,6 +229,7 @@ nobase_follyinclude_HEADERS = \
futures/test/TestExecutor.h \ futures/test/TestExecutor.h \
hash/Checksum.h \ hash/Checksum.h \
hash/detail/ChecksumDetail.h \ hash/detail/ChecksumDetail.h \
hash/Hash.h \
hash/SpookyHashV1.h \ hash/SpookyHashV1.h \
hash/SpookyHashV2.h \ hash/SpookyHashV2.h \
gen/Base.h \ gen/Base.h \
...@@ -246,7 +247,6 @@ nobase_follyinclude_HEADERS = \ ...@@ -246,7 +247,6 @@ nobase_follyinclude_HEADERS = \
gen/String.h \ gen/String.h \
gen/String-inl.h \ gen/String-inl.h \
GroupVarint.h \ GroupVarint.h \
Hash.h \
IPAddress.h \ IPAddress.h \
IPAddressV4.h \ IPAddressV4.h \
IPAddressV6.h \ IPAddressV6.h \
......
...@@ -125,12 +125,12 @@ ...@@ -125,12 +125,12 @@
#include <folly/Demangle.h> #include <folly/Demangle.h>
#include <folly/Exception.h> #include <folly/Exception.h>
#include <folly/Executor.h> #include <folly/Executor.h>
#include <folly/Hash.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/RWSpinLock.h> #include <folly/RWSpinLock.h>
#include <folly/Synchronized.h> #include <folly/Synchronized.h>
#include <folly/detail/StaticSingletonManager.h> #include <folly/detail/StaticSingletonManager.h>
#include <folly/experimental/ReadMostlySharedPtr.h> #include <folly/experimental/ReadMostlySharedPtr.h>
#include <folly/hash/Hash.h>
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <folly/CppAttributes.h> #include <folly/CppAttributes.h>
#include <folly/Exception.h> #include <folly/Exception.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/Hash.h> #include <folly/hash/Hash.h>
namespace { namespace {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <tuple> #include <tuple>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Hash.h> #include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <folly/Hash.h>
#include <folly/Indestructible.h> #include <folly/Indestructible.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/ThreadId.h> #include <folly/ThreadId.h>
#include <folly/hash/Hash.h>
#include <folly/portability/BitsFunctexcept.h> #include <folly/portability/BitsFunctexcept.h>
#include <folly/portability/Memory.h> #include <folly/portability/Memory.h>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include <memory> #include <memory>
#include <thread> #include <thread>
#include <folly/Hash.h>
#include <folly/concurrency/ConcurrentHashMap.h> #include <folly/concurrency/ConcurrentHashMap.h>
#include <folly/hash/Hash.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/test/DeterministicSchedule.h> #include <folly/test/DeterministicSchedule.h>
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <folly/detail/Futex.h> #include <folly/detail/Futex.h>
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
#include <folly/Hash.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/hash/Hash.h>
#include <folly/portability/SysSyscall.h> #include <folly/portability/SysSyscall.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#include <chrono> #include <chrono>
#include <folly/AtomicStruct.h> #include <folly/AtomicStruct.h>
#include <folly/Hash.h>
#include <folly/ThreadId.h> #include <folly/ThreadId.h>
#include <folly/Traits.h> #include <folly/Traits.h>
#include <folly/detail/Futex.h> #include <folly/detail/Futex.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <folly/Assume.h> #include <folly/Assume.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/Hash.h> #include <folly/hash/Hash.h>
#include <folly/portability/BitsFunctexcept.h> #include <folly/portability/BitsFunctexcept.h>
namespace folly { namespace folly {
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
#include <folly/Function.h> #include <folly/Function.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/Hash.h> #include <folly/hash/Hash.h>
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>
#include <mutex> #include <mutex>
#include <thread> #include <thread>
#include <vector>
#include <unordered_map> #include <unordered_map>
#include <vector>
namespace folly { namespace folly {
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include <folly/Hash.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/StringKeyedCommon.h> #include <folly/experimental/StringKeyedCommon.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
#include <folly/Hash.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/StringKeyedCommon.h> #include <folly/experimental/StringKeyedCommon.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#include <boost/operators.hpp> #include <boost/operators.hpp>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Hash.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/symbolizer/Elf.h> #include <folly/experimental/symbolizer/Elf.h>
#include <folly/hash/Hash.h>
namespace folly { namespace folly {
namespace symbolizer { namespace symbolizer {
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Hash.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/hash/Hash.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
This diff is collapsed.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <boost/crc.hpp> #include <boost/crc.hpp>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/Hash.h> #include <folly/hash/Hash.h>
#include <folly/hash/detail/ChecksumDetail.h> #include <folly/hash/detail/ChecksumDetail.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Hash.h> #include <folly/hash/Hash.h>
#include <stdint.h> #include <stdint.h>
#include <deque> #include <deque>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Hash.h> #include <folly/hash/Hash.h>
#include <folly/MapUtil.h> #include <folly/MapUtil.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/Hash.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <folly/Varint.h> #include <folly/Varint.h>
#include <folly/hash/Hash.h>
#include <folly/io/IOBufQueue.h> #include <folly/io/IOBufQueue.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <folly/AtomicHashArray.h> #include <folly/AtomicHashArray.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Hash.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/hash/Hash.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/ConcurrentSkipList.h> #include <folly/ConcurrentSkipList.h>
#include <folly/Hash.h>
#include <folly/RWSpinLock.h> #include <folly/RWSpinLock.h>
#include <folly/hash/Hash.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <glog/logging.h> #include <glog/logging.h>
......
...@@ -89,7 +89,7 @@ foreach_benchmark_SOURCES = ForeachBenchmark.cpp ...@@ -89,7 +89,7 @@ foreach_benchmark_SOURCES = ForeachBenchmark.cpp
foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
check_PROGRAMS += foreach_benchmark check_PROGRAMS += foreach_benchmark
hash_test_SOURCES = HashTest.cpp hash_test_SOURCES = ../hash/test/HashTest.cpp
hash_test_LDADD = libfollytestmain.la hash_test_LDADD = libfollytestmain.la
invoke_test_SOURCES = ../functional/test/InvokeTest.cpp invoke_test_SOURCES = ../functional/test/InvokeTest.cpp
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/Hash.h>
#include <folly/ThreadId.h> #include <folly/ThreadId.h>
#include <folly/hash/Hash.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.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