HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bjhash Namespace Reference

Functions

OIIO_FORCEINLINE
OIIO_HOSTDEVICE uint32_t 
rotl32 (uint32_t x, int k)
 
OIIO_FORCEINLINE
OIIO_HOSTDEVICE uint64_t 
rotl64 (uint64_t x, int k)
 
OIIO_HOSTDEVICE void bjmix (uint32_t &a, uint32_t &b, uint32_t &c)
 
OIIO_HOSTDEVICE uint32_t bjfinal (uint32_t a, uint32_t b, uint32_t c=0xdeadbeef)
 
uint64_t bjfinal64 (uint64_t h0, uint64_t h1, uint64_t h2, uint64_t h3)
 
uint32_t OIIO_API hashlittle (const void *key, size_t length, uint32_t seed=1771)
 
uint32_t OIIO_API hashword (const uint32_t *key, size_t nwords, uint32_t seed=1771)
 
size_t strhash (const char *s)
 
size_t strhash (string_view s)
 

Function Documentation

OIIO_HOSTDEVICE uint32_t bjhash::bjfinal ( uint32_t  a,
uint32_t  b,
uint32_t  c = 0xdeadbeef 
)
inline

Definition at line 180 of file hash.h.

uint64_t bjhash::bjfinal64 ( uint64_t  h0,
uint64_t  h1,
uint64_t  h2,
uint64_t  h3 
)
inline

Definition at line 194 of file hash.h.

OIIO_HOSTDEVICE void bjhash::bjmix ( uint32_t &  a,
uint32_t &  b,
uint32_t &  c 
)
inline

Definition at line 168 of file hash.h.

uint32_t OIIO_API bjhash::hashlittle ( const void key,
size_t  length,
uint32_t  seed = 1771 
)
uint32_t OIIO_API bjhash::hashword ( const uint32_t *  key,
size_t  nwords,
uint32_t  seed = 1771 
)
OIIO_FORCEINLINE OIIO_HOSTDEVICE uint32_t bjhash::rotl32 ( uint32_t  x,
int  k 
)

Definition at line 152 of file hash.h.

OIIO_FORCEINLINE OIIO_HOSTDEVICE uint64_t bjhash::rotl64 ( uint64_t  x,
int  k 
)

Definition at line 162 of file hash.h.

size_t bjhash::strhash ( const char *  s)
inline

Definition at line 224 of file hash.h.

size_t bjhash::strhash ( string_view  s)
inline

Definition at line 246 of file hash.h.