contrib/ekg_hash_benchmark.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>

Data Structures

struct  list
struct  format

Defines

#define fix(s)   ((s) ? (s) : "")
#define ROL(x)   (((x>>25)&0x7f)|((x<<7)&0xffffff80))
#define _(x)   x

Typedefs

typedef int hash_t
typedef listlist_t

Functions

hash_t ekg_hash (const char *name)
void ekg_oom_handler ()
void * xmalloc (size_t size)
int xstrcmp (const char *s1, const char *s2)
char * xstrdup (const char *s)
void xfree (void *ptr)
void * list_add_beginning (list_t *list, void *data)
void format_add (const char *name, const char *value, int replace)
const char * format_find (const char *name)
int main ()

Variables

hash_t no_prompt_cache_hash = 0x139dcbd6
int hashes [256]
list_t formats = NULL
int i = 0

Define Documentation

#define _ (  )     x

#define fix (  )     ((s) ? (s) : "")

#define ROL (  )     (((x>>25)&0x7f)|((x<<7)&0xffffff80))


Typedef Documentation

typedef int hash_t

typedef struct list* list_t


Function Documentation

hash_t ekg_hash ( const char *  name  ) 

void ekg_oom_handler (  ) 

void format_add ( const char *  name,
const char *  value,
int  replace 
)

const char* format_find ( const char *  name  ) 

void* list_add_beginning ( list_t list,
void *  data 
)

int main (  ) 

void xfree ( void *  ptr  ) 

void* xmalloc ( size_t  size  ) 

int xstrcmp ( const char *  s1,
const char *  s2 
)

char* xstrdup ( const char *  s  ) 


Variable Documentation

list_t formats = NULL

int hashes[256]

int i = 0

hash_t no_prompt_cache_hash = 0x139dcbd6


Generated on Sat Nov 22 22:30:43 2008 for ekg2 by  doxygen 1.5.1