ekg2  GIT master
Struktury danych | Definicje | Definicje typów | Funkcje | Zmienne
Dokumentacja pliku ekg_hash_benchmark.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "ekg_hash_benchmark.inc"
Wykres zależności załączania dla ekg_hash_benchmark.c:

Struktury danych

struct  list
 
struct  format
 

Definicje

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

Definicje typów

typedef int hash_t
 
typedef struct listlist_t
 

Funkcje

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 ()
 

Zmienne

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

Dokumentacja definicji

◆ _

#define _ (   x)    x

◆ fix

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

◆ ROL

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

Dokumentacja definicji typów

◆ hash_t

typedef int hash_t

◆ list_t

typedef struct list* list_t

Dokumentacja funkcji

◆ ekg_hash()

hash_t ekg_hash ( const char *  name)

◆ ekg_oom_handler()

void ekg_oom_handler ( )

◆ format_add()

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

◆ format_find()

const char* format_find ( const char *  name)

◆ list_add_beginning()

void* list_add_beginning ( list_t list,
void *  data 
)

◆ main()

int main ( )

◆ xfree()

void xfree ( void *  ptr)

◆ xmalloc()

void* xmalloc ( size_t  size)

◆ xstrcmp()

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

◆ xstrdup()

char* xstrdup ( const char *  s)

Dokumentacja zmiennych

◆ formats

list_t formats = NULL

◆ hashes

int hashes[256]

◆ i

int i = 0

◆ no_prompt_cache_hash

hash_t no_prompt_cache_hash = 0x139dcbd6