Pajdeg  0.2.2
Pajdeg
Macros | Functions
PDStaticHash.h File Reference
#include "PDDefines.h"

Go to the source code of this file.

Macros

#define static_hash_idx(mask, shift, key)   (((long)key ^ ((long)key >> shift)) & mask)
 
#define PDStaticHashIdx(stha, key)   static_hash_idx(stha->mask, stha->shift, key)
 
#define PDStaticHashValueForHash(stha, hash)   stha->table[hash]
 
#define PDStaticHashValueForKey(stha, key)   stha->table[PDStaticHashIdx(stha, key)]
 
#define PDStaticHashValueForHashAs(stha, hash, type)   as(type, PDStaticHashValueForHash(stha, hash))
 
#define PDStaticHashValueForKeyAs(stha, key, type)   as(type, PDStaticHashValueForKey(stha, key))
 

Functions

PDStaticHashRef PDStaticHashCreate (PDInteger entries, void **keys, void **values)
 
void PDStaticHashDisownKeysValues (PDStaticHashRef sh, PDBool disownKeys, PDBool disownValues)
 

Detailed Description

Static hash header file.