]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/util/xxhash.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / util / xxhash.cc
1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
5 /*
6 * xxHash - Extremely Fast Hash algorithm
7 * Copyright (C) 2012-2020 Yann Collet
8 *
9 * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are
13 * met:
14 *
15 * * Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * * Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following disclaimer
19 * in the documentation and/or other materials provided with the
20 * distribution.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 * You can contact the author at:
35 * - xxHash homepage: https://www.xxhash.com
36 * - xxHash source repository: https://github.com/Cyan4973/xxHash
37 */
38
39 /*
40 * xxhash.c instantiates functions defined in xxhash.h
41 */
42 // clang-format off
43 #ifndef XXH_STATIC_LINKING_ONLY
44 #define XXH_STATIC_LINKING_ONLY /* access advanced declarations */
45 #endif // !defined(XXH_STATIC_LINKING_ONLY)
46 #define XXH_IMPLEMENTATION /* access definitions */
47
48 #include "xxhash.h"