ARB
Macros | Variables
gb_hashindex.h File Reference
#include "gb_local.h"
Include dependency graph for gb_hashindex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_ARB_CRC_HASH
 
#define GB_CALC_HASH_INDEX_CASE_SENSITIVE(string, index, size)
 
#define GB_CALC_HASH_INDEX_CASE_IGNORED(string, index, size)
 
#define GB_CALC_HASH_INDEX(string, index, size, caseSens)
 

Variables

const uint32_t crctab []
 

Macro Definition Documentation

#define USE_ARB_CRC_HASH

Definition at line 23 of file gb_hashindex.h.

#define GB_CALC_HASH_INDEX_CASE_SENSITIVE (   string,
  index,
  size 
)
Value:
do { \
const char *local_ptr = (string); \
int local_i; \
(index) = 0xffffffffL; \
while ((local_i=(*(local_ptr++)))) { \
(index) = crctab[((int)(index)^local_i) & 0xff] ^ ((index) >> 8); \
} \
(index) = (index) % (size); \
} while (0)
return string(buffer, length)
const uint32_t crctab[]
Definition: adstring.cxx:265
while(1)

Definition at line 26 of file gb_hashindex.h.

Referenced by find_hash_entry().

#define GB_CALC_HASH_INDEX_CASE_IGNORED (   string,
  index,
  size 
)
Value:
do { \
const char *local_ptr = (string); \
int local_i; \
(index) = 0xffffffffL; \
while ((local_i = *(local_ptr++))) { \
(index) = crctab[((int) (index) ^ toupper(local_i)) & 0xff] ^ ((index) >> 8); \
} \
(index) = (index) % (size); \
} while (0)
return string(buffer, length)
const uint32_t crctab[]
Definition: adstring.cxx:265
while(1)

Definition at line 36 of file gb_hashindex.h.

Referenced by find_hash_entry().

#define GB_CALC_HASH_INDEX (   string,
  index,
  size,
  caseSens 
)
Value:
do { \
if ((caseSens) == GB_IGNORE_CASE) \
GB_CALC_HASH_INDEX_CASE_IGNORED(string, index, size); \
GB_CALC_HASH_INDEX_CASE_SENSITIVE(string, index, size); \
} while (0)
#define GB_CALC_HASH_INDEX_CASE_IGNORED(string, index, size)
Definition: gb_hashindex.h:36
GB_write_int const char GB_write_autoconv_string WRITE_SKELETON(write_pointer, GBDATA *,"%p", GB_write_pointer) char *AW_awa if)(!gb_var) return strdup("")
Definition: AW_awar.cxx:166
#define GB_CALC_HASH_INDEX_CASE_SENSITIVE(string, index, size)
Definition: gb_hashindex.h:26

Definition at line 70 of file gb_hashindex.h.

Referenced by gb_index_find(), GBS_optimize_hash(), GBENTRY::index_check_in(), and GBENTRY::index_check_out().

Variable Documentation

const uint32_t crctab[]

Definition at line 265 of file adstring.cxx.

Referenced by GB_checksum().