blob: a7db64a919c87b03113b64bab7cf0b6c1ebacb95 [file] [log] [blame]
mgiuca@chromium.orge1be6392014-03-03 16:59:27 +09001// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
jbates@chromium.org68c7aea2012-09-01 09:55:09 +09004
5#include "base/hash.h"
6
mgiuca@chromium.orge1be6392014-03-03 16:59:27 +09007// Definition in base/third_party/superfasthash/superfasthash.c. (Third-party
8// code did not come with its own header file, so declaring the function here.)
mgiuca@chromium.orgbc5c8742014-03-06 14:56:59 +09009// Note: This algorithm is also in Blink under Source/wtf/StringHasher.h.
mgiuca@chromium.orge1be6392014-03-03 16:59:27 +090010extern "C" uint32_t SuperFastHash(const char* data, int len);
jbates@chromium.org68c7aea2012-09-01 09:55:09 +090011
12namespace base {
13
mgiuca@chromium.orge1be6392014-03-03 16:59:27 +090014uint32 SuperFastHash(const char* data, int len) {
15 return ::SuperFastHash(data, len);
jbates@chromium.org68c7aea2012-09-01 09:55:09 +090016}
17
18} // namespace base