GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/bcache.c File Reference
#include "defs.h"
#include "gdb_obstack.h"
#include "bcache.h"
#include "gdb_string.h"
#include "gdb_assert.h"
#include <stddef.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define CHAIN_LENGTH_THRESHOLD   (5)
#define BSTRING_SIZE(n)   (offsetof (struct bstring, d.data) + (n))

Functions

unsigned long hash (const void *addr, int length)
unsigned long hash_continue (const void *addr, int length, unsigned long h)
const void * bcache (const void *addr, int length, struct bcache *cache)
const void * bcache_full (const void *addr, int length, struct bcache *bcache, int *added)
struct bcachebcache_xmalloc (unsigned long(*hash_function)(const void *, int length), int(*compare_function)(const void *, const void *, int length))
void bcache_xfree (struct bcache *bcache)
void print_bcache_statistics (struct bcache *c, char *type)
int bcache_memory_used (struct bcache *bcache)

Define Documentation

#define BSTRING_SIZE (   n)    (offsetof (struct bstring, d.data) + (n))

Definition at line 205 of file bcache.c.

#define CHAIN_LENGTH_THRESHOLD   (5)

Definition at line 129 of file bcache.c.


Function Documentation

const void* bcache ( const void *  addr,
int  length,
struct bcache cache 
)

Definition at line 211 of file bcache.c.

const void* bcache_full ( const void *  addr,
int  length,
struct bcache bcache,
int added 
)

Definition at line 223 of file bcache.c.

int bcache_memory_used ( struct bcache bcache)

Definition at line 490 of file bcache.c.

void bcache_xfree ( struct bcache bcache)

Definition at line 332 of file bcache.c.

struct bcache* bcache_xmalloc ( unsigned long(*)(const void *, int length)  hash_function,
int(*)(const void *, const void *, int length)  compare_function 
) [read]

Definition at line 310 of file bcache.c.

unsigned long hash ( const void *  addr,
int  length 
)

Definition at line 103 of file bcache.c.

unsigned long hash_continue ( const void *  addr,
int  length,
unsigned long  h 
)

Definition at line 111 of file bcache.c.

void print_bcache_statistics ( struct bcache c,
char *  type 
)

Definition at line 363 of file bcache.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines