/src/brpc/src/butil/hash.cc
Line | Count | Source |
1 | | // 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. |
4 | | |
5 | | #include "butil/hash.h" |
6 | | |
7 | | // Definition in butil/third_party/superfasthash/superfasthash.c. (Third-party |
8 | | // code did not come with its own header file, so declaring the function here.) |
9 | | // Note: This algorithm is also in Blink under Source/wtf/StringHasher.h. |
10 | | extern "C" uint32_t SuperFastHash(const char* data, int len); |
11 | | |
12 | | namespace butil { |
13 | | |
14 | 0 | uint32_t SuperFastHash(const char* data, int len) { |
15 | 0 | return ::SuperFastHash(data, len); |
16 | 0 | } |
17 | | |
18 | | } // namespace butil |