FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
concat_hash.h
Go to the documentation of this file.
1 #ifndef _CONCAT_HASH_H_
2 #define _CONCAT_HASH_H_ "$Id: concat_hash.h 454 2020-07-23 20:22:23Z geoff $"
4 
6 /* Copyright (C) 2010 - 2019 FARGOS Development, LLC */
7 
17 #include <stdint.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
37 extern uint32_t hash_string32(const char *str);
38 
44 extern uint32_t hash_block32(const void *block, size_t blockLen);
45 
52 extern uint32_t hash_concat32(uint32_t left, uint32_t right) OME_CONST_FUNCTION;
53 
54 
59 #ifdef __cplusplus
60 }; /* close extern "C" scope */
61 #endif
62 
63 #endif
64 
65 /* vim: set expandtab shiftwidth=4 tabstop=4: */
hash_block32
uint32_t hash_block32(const void *block, size_t blockLen)
Generate a concatenateable 32-bit hash of a block of memory.
Definition: concat_hash.cpp:45
concat_hash.h
Concatenable hash algorithms.
OME_PREFETCH
#define OME_PREFETCH(addr, rw, locality)
Macro to request prefetch.
Definition: compiler_hints.h:362
srcID
const char srcID[]
Definition: catSym.c:17
hash_concat32
uint32_t hash_concat32(uint32_t left, uint32_t right)
Compose a new hash of a logically concatenated string from previous hashes of the two elements.
Definition: concat_hash.cpp:74
hash_string32
uint32_t hash_string32(const char *text)
Generate a concatenateable 32-bit hash of a null-terminated string.
Definition: concat_hash.cpp:22
OME_USED
const char srcID[] OME_USED
Definition: tick_time.cpp:24
OME_CONST_FUNCTION
#define OME_CONST_FUNCTION
Mark as an idempotent function that only accesses arguments – no global data.
Definition: compiler_hints.h:390
compiler_hints.h
Compiler-specific macros to provide performance-related hints.
Generated: Tue Jul 28 2020 16:03:25
Support Information