MySQL  8.0.27
Source Code Documentation
my_murmur3.h
Go to the documentation of this file.
1 #ifndef MY_MURMUR3_INCLUDED
2 #define MY_MURMUR3_INCLUDED
3 
4 /* Copyright (c) 2013, 2021, Oracle and/or its affiliates.
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License, version 2.0,
8  as published by the Free Software Foundation.
9 
10  This program is also distributed with certain software (including
11  but not limited to OpenSSL) that is licensed under separate terms,
12  as designated in a particular file or component or in included license
13  documentation. The authors of MySQL hereby grant you an additional
14  permission to link the program and your derivative works with the
15  separately licensed software that they have included with MySQL.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License, version 2.0, for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
25 
26 /**
27  @file include/my_murmur3.h
28 */
29 
30 #include <stddef.h>
31 
32 #include "my_inttypes.h"
33 #include "my_macros.h"
34 
35 uint32 murmur3_32(const uchar *key, size_t len, uint32 seed);
36 
37 #endif /* MY_MURMUR3_INCLUDED */
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:51
uint32_t uint32
Definition: my_inttypes.h:66
Some common macros.
uint32 murmur3_32(const uchar *key, size_t len, uint32 seed)
Compute 32-bit version of MurmurHash3 hash for the key.
Definition: my_murmur3.cc:85
required string key
Definition: replication_asynchronous_connection_failover.proto:59