Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created June 16, 2009 22:39
Show Gist options
  • Select an option

  • Save methodmissing/130953 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/130953 to your computer and use it in GitHub Desktop.
struct st_table {
struct st_hash_type *type;
int num_bins = 11;
int num_entries = 1;
struct st_table_entry **bins;
};
struct st_table {
struct st_hash_type *type;
int num_bins = 283;
int num_entries = 814;
struct st_table_entry **bins;
};
struct st_table {
struct st_hash_type *type;
int num_bins = 283;
int num_entries = 814;
struct st_table_entry **bins;
};
struct st_table {
struct st_hash_type *type;
int num_bins = 283;
int num_entries = 814;
struct st_table_entry **bins;
};
pid$target::st_lookup:entry {
self->num_bins = (xlate < st_table_t * > (((st_table_t *)arg0)))->num_bins;
self->num_entries = (xlate < st_table_t * > (((st_table_t *)arg0)))->num_entries;
self->key = arg1;
self->value = *(uint32_t *)copyin(arg2, 4);
printf( "struct st_table {\n" );
printf( " struct st_hash_type *type;\n" );
printf( " int num_bins = %d;\n", self->num_bins );
printf( " int num_entries = %d;\n", self->num_entries );
printf( " struct st_table_entry **bins;\n" );
printf( "};\n" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment