~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to benchmarks/multi/harness.c

  • Committer: Michael Hope
  • Date: 2012-06-12 03:33:40 UTC
  • Revision ID: michael.hope@linaro.org-20120612033340-p4ednk452cnshhts
Add a benchmark stub for memcmp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
  SPOIL(memset(dest, 0, n));
95
95
}
96
96
 
 
97
/** Stub that calls memcmp */
 
98
static void xmemcmp(void *dest, void *src, size_t n)
 
99
{
 
100
  SPOIL(memcmp(dest, src, n));
 
101
}
 
102
 
97
103
/** Stub that calls strcpy */
98
104
static void xstrcpy(void *dest, void *src, size_t n)
99
105
{
135
141
    { "memchr", xmemchr },
136
142
    { "memcpy", xmemcpy },
137
143
    { "memset", xmemset },
 
144
    { "memcmp", xmemcmp },
138
145
    { "strchr", xstrchr },
139
146
    { "strcmp", xstrcmp },
140
147
    { "strcpy", xstrcpy },