Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
MurmurHash3.cpp File Reference
#include <vlCore/MurmurHash3.hpp>

Go to the source code of this file.

Macros

#define FORCE_INLINE   inline
 
#define ROTL32(x, y)   rotl32(x,y)
 
#define ROTL64(x, y)   rotl64(x,y)
 
#define BIG_CONSTANT(x)   (x##LLU)
 

Functions

u32 rotl32 (u32 x, i8 r)
 
u64 rotl64 (u64 x, i8 r)
 
FORCE_INLINE u32 getblock (const u32 *p, int i)
 
FORCE_INLINE u64 getblock (const u64 *p, int i)
 
FORCE_INLINE u32 fmix (u32 h)
 
FORCE_INLINE u64 fmix (u64 k)
 

Macro Definition Documentation

◆ BIG_CONSTANT

#define BIG_CONSTANT (   x)    (x##LLU)

Definition at line 50 of file MurmurHash3.cpp.

Referenced by fmix(), and vl::MurmurHash3_x64_128().

◆ FORCE_INLINE

#define FORCE_INLINE   inline

Definition at line 35 of file MurmurHash3.cpp.

◆ ROTL32

#define ROTL32 (   x,
 
)    rotl32(x,y)

Definition at line 47 of file MurmurHash3.cpp.

Referenced by vl::MurmurHash3_x86_128(), and vl::MurmurHash3_x86_32().

◆ ROTL64

#define ROTL64 (   x,
 
)    rotl64(x,y)

Definition at line 48 of file MurmurHash3.cpp.

Referenced by vl::MurmurHash3_x64_128().

Function Documentation

◆ fmix() [1/2]

FORCE_INLINE u32 fmix ( u32  h)

◆ fmix() [2/2]

FORCE_INLINE u64 fmix ( u64  k)

Definition at line 84 of file MurmurHash3.cpp.

References BIG_CONSTANT.

◆ getblock() [1/2]

FORCE_INLINE u32 getblock ( const u32 p,
int  i 
)

◆ getblock() [2/2]

FORCE_INLINE u64 getblock ( const u64 p,
int  i 
)

Definition at line 63 of file MurmurHash3.cpp.

◆ rotl32()

u32 rotl32 ( u32  x,
i8  r 
)
inline

Definition at line 37 of file MurmurHash3.cpp.

◆ rotl64()

u64 rotl64 ( u64  x,
i8  r 
)
inline

Definition at line 42 of file MurmurHash3.cpp.