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

Move the SpookyHash libraries into folly/hash

Summary:
[Folly] Move the SpookyHash libraries into `folly/hash`.

And propagate the changes to `#include` lines, etc.

Reviewed By: ot, ericniebler, Orvid

Differential Revision: D5455584

fbshipit-source-id: 616b04579eb6c822023b04840b075f3ac9fbb720
parent f90eaa17
......@@ -26,8 +26,8 @@
#include <folly/ApplyTuple.h>
#include <folly/Bits.h>
#include <folly/SpookyHashV1.h>
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV1.h>
#include <folly/hash/SpookyHashV2.h>
/*
* Various hashing functions.
......
......@@ -207,6 +207,8 @@ nobase_follyinclude_HEADERS = \
futures/detail/FSM.h \
futures/detail/Types.h \
futures/test/TestExecutor.h \
hash/SpookyHashV1.h \
hash/SpookyHashV2.h \
gen/Base.h \
gen/Base-inl.h \
gen/Combine.h \
......@@ -376,8 +378,6 @@ nobase_follyinclude_HEADERS = \
sorted_vector_types.h \
SparseByteSet.h \
SpinLock.h \
SpookyHashV1.h \
SpookyHashV2.h \
ssl/OpenSSLCertUtils.h \
ssl/OpenSSLHash.h \
ssl/OpenSSLPtrTypes.h \
......@@ -477,6 +477,8 @@ libfolly_la_SOURCES = \
detail/Futex.cpp \
detail/StaticSingletonManager.cpp \
detail/ThreadLocalDetail.cpp \
hash/SpookyHashV1.cpp \
hash/SpookyHashV2.cpp \
GroupVarint.cpp \
GroupVarintTables.cpp \
IPAddress.cpp \
......@@ -548,8 +550,6 @@ libfolly_la_SOURCES = \
Optional.cpp \
Singleton.cpp \
SocketAddress.cpp \
SpookyHashV1.cpp \
SpookyHashV2.cpp \
ssl/OpenSSLCertUtils.cpp \
ssl/OpenSSLHash.cpp \
ssl/detail/SSLSessionImpl.cpp \
......
......@@ -21,7 +21,7 @@
#include <folly/FBString.h>
#include <folly/Portability.h>
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV2.h>
#include <folly/portability/BitsFunctexcept.h>
#include <folly/portability/Constexpr.h>
#include <folly/portability/String.h>
......
......@@ -21,9 +21,9 @@
#include <folly/RWSpinLock.h>
#include <folly/Range.h>
#include <folly/SpookyHashV2.h>
#include <folly/Synchronized.h>
#include <folly/ThreadLocal.h>
#include <folly/hash/SpookyHashV2.h>
#include <folly/experimental/exception_tracer/ExceptionTracerLib.h>
#include <folly/experimental/exception_tracer/StackTrace.h>
......
......@@ -24,7 +24,7 @@
// July 12 2012: was passing out variables in final to in/out in short
// July 30 2012: I reintroduced the buffer overflow
#include <folly/SpookyHashV1.h>
#include <folly/hash/SpookyHashV1.h>
#include <folly/CppAttributes.h>
......
......@@ -26,7 +26,7 @@
// August 5 2012: SpookyV2: d = should be d += in short hash, and remove
// extra mix from long hash
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV2.h>
#include <folly/CppAttributes.h>
#include <folly/Portability.h>
......
......@@ -20,7 +20,7 @@
#define __STDC_FORMAT_MACROS 1
#endif
#include <folly/SpookyHashV1.h>
#include <folly/hash/SpookyHashV1.h>
#include <cinttypes>
#include <cstddef>
......
......@@ -20,7 +20,7 @@
#define __STDC_FORMAT_MACROS 1
#endif
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV2.h>
#include <cinttypes>
#include <cstddef>
......
......@@ -30,7 +30,7 @@
#include <folly/Malloc.h>
#include <folly/Memory.h>
#include <folly/ScopeGuard.h>
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV2.h>
#include <folly/io/Cursor.h>
using std::unique_ptr;
......
......@@ -20,7 +20,7 @@
#include <boost/iterator/iterator_facade.hpp>
#include <folly/SpookyHashV2.h>
#include <folly/hash/SpookyHashV2.h>
namespace folly {
......
......@@ -217,11 +217,11 @@ portability_test_SOURCES = PortabilityTest.cpp
portability_test_LDADD = libfollytestmain.la
TESTS += portability_test
spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
spooky_hash_v1_test_SOURCES = ../hash/test/SpookyHashV1Test.cpp
spooky_hash_v1_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
TESTS += spooky_hash_v1_test
spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
spooky_hash_v2_test_SOURCES = ../hash/test/SpookyHashV2Test.cpp
spooky_hash_v2_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
TESTS += spooky_hash_v2_test
......
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