search for: table_cnt

Displaying 2 results from an estimated 2 matches for "table_cnt".

Did you mean: table_cat
2009 Jul 13
0
[PATCH, v2] x86-64: reduce symbol table size
...quot;a\"\n"); + printf("#ifndef SYMBOLS_ORIGIN\n"); + printf("#define SYMBOLS_ORIGIN 0\n"); output_label("symbols_addresses"); + printf("#else\n"); + output_label("symbols_offsets"); + printf("#endif\n"); for (i = 0; i < table_cnt; i++) { - printf("\tPTR\t%#llx\n", table[i].addr); + printf("\tPTR\t%#llx - SYMBOLS_ORIGIN\n", table[i].addr); } printf("\n"); output_label("symbols_num_syms"); - printf("\tPTR\t%d\n", table_cnt); + printf("\t.long\t%d\n", table_...
2007 Jan 05
1
[PATCH] Re: [Xen-staging] [xen-unstable] [XEN] Avoid use of GNU-specific memmem().
...t; # Parent 60f91c9f1a248491e2f216d009a27a4c7e5e67d4 > [XEN] Avoid use of GNU-specific memmem(). > --- a/xen/tools/symbols.c Wed Jan 03 23:53:27 2007 +0000 > +++ b/xen/tools/symbols.c Thu Jan 04 10:17:34 2007 +0000 > @@ -350,6 +350,14 @@ static void build_initial_tok_table(void > table_cnt = pos; > } > > +static void *memmem_pvt(void *h, size_t hlen, void *n, size_t nlen) > +{ > + char *p; > + for (p = h; (p - (char *)h) <= (hlen - nlen); p++) > + if (!memcmp(p, n, nlen)) return p; > + return NULL; > +} size_t is unsigned, (hlen - nlen) can wrap...