Blender
V2.93
source
blender
blenlib
BLI_hash_mm2a.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
17
#pragma once
18
23
#include "
BLI_sys_types.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
typedef
struct
BLI_HashMurmur2A
{
30
uint32_t
hash
;
31
uint32_t
tail
;
32
uint32_t
count
;
33
uint32_t
size
;
34
}
BLI_HashMurmur2A
;
35
36
void
BLI_hash_mm2a_init
(
BLI_HashMurmur2A
*mm2,
uint32_t
seed
);
37
38
void
BLI_hash_mm2a_add
(
BLI_HashMurmur2A
*mm2,
const
unsigned
char
*
data
,
size_t
len
);
39
40
void
BLI_hash_mm2a_add_int
(
BLI_HashMurmur2A
*mm2,
int
data
);
41
42
uint32_t
BLI_hash_mm2a_end
(
BLI_HashMurmur2A
*mm2);
43
44
uint32_t
BLI_hash_mm2
(
const
unsigned
char
*
data
,
size_t
len
,
uint32_t
seed
);
45
46
#ifdef __cplusplus
47
}
48
#endif
BLI_hash_mm2a_init
void BLI_hash_mm2a_init(BLI_HashMurmur2A *mm2, uint32_t seed)
Definition:
hash_mm2a.c:75
BLI_hash_mm2a_add
void BLI_hash_mm2a_add(BLI_HashMurmur2A *mm2, const unsigned char *data, size_t len)
Definition:
hash_mm2a.c:83
BLI_hash_mm2a_add_int
void BLI_hash_mm2a_add_int(BLI_HashMurmur2A *mm2, int data)
Definition:
hash_mm2a.c:98
BLI_HashMurmur2A
struct BLI_HashMurmur2A BLI_HashMurmur2A
BLI_hash_mm2a_end
uint32_t BLI_hash_mm2a_end(BLI_HashMurmur2A *mm2)
Definition:
hash_mm2a.c:103
BLI_hash_mm2
uint32_t BLI_hash_mm2(const unsigned char *data, size_t len, uint32_t seed)
Definition:
hash_mm2a.c:114
BLI_sys_types.h
data
data
Definition:
bmesh_operator_api_inline.h:176
seed
static unsigned long seed
Definition:
btSoftBody.h:39
uint32_t
unsigned int uint32_t
Definition:
stdint.h:83
BLI_HashMurmur2A
Definition:
BLI_hash_mm2a.h:29
BLI_HashMurmur2A::hash
uint32_t hash
Definition:
BLI_hash_mm2a.h:30
BLI_HashMurmur2A::tail
uint32_t tail
Definition:
BLI_hash_mm2a.h:31
BLI_HashMurmur2A::size
uint32_t size
Definition:
BLI_hash_mm2a.h:33
BLI_HashMurmur2A::count
uint32_t count
Definition:
BLI_hash_mm2a.h:32
len
uint len
Definition:
uvedit_unwrap_ops.c:1146
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1