Coverage Report

Created: 2025-08-29 06:18

/src/ogre/OgreMain/include/OgreMurmurHash3.h
Line
Count
Source (jump to first uncovered line)
1
//-----------------------------------------------------------------------------
2
// MurmurHash3 was written by Austin Appleby, and is placed in the public
3
// domain. The author hereby disclaims copyright to this source code.
4
5
#ifndef _MURMURHASH3_H_
6
#define _MURMURHASH3_H_
7
8
//-----------------------------------------------------------------------------
9
// Platform-specific functions and macros
10
#include "OgrePlatform.h"
11
12
#include <cstddef>
13
#include <stdint.h>
14
15
//-----------------------------------------------------------------------------
16
17
namespace Ogre
18
{
19
    void _OgreExport MurmurHash3_x86_32  ( const void * key, size_t len, uint32_t seed, void * out );
20
21
    void _OgreExport MurmurHash3_x86_128 ( const void * key, size_t len, uint32_t seed, void * out );
22
23
    void _OgreExport MurmurHash3_x64_128 ( const void * key, size_t len, uint32_t seed, void * out );
24
25
0
    inline void MurmurHash3_128( const void * key, size_t len, uint32_t seed, void * out ) {
26
0
#if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64
27
0
        MurmurHash3_x64_128(key, len, seed, out);
28
0
#else
29
0
        MurmurHash3_x86_128(key, len, seed, out);
30
0
#endif
31
0
    }
32
}
33
34
//-----------------------------------------------------------------------------
35
36
#endif // _MURMURHASH3_H_