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

« back to all changes in this revision

Viewing changes to benchmarks/multi/harness.c

  • Committer: Will Newton
  • Date: 2013-06-17 07:41:39 UTC
  • Revision ID: will.newton@linaro.org-20130617074139-db4872kqv4bfs2am
Check alignment argument is valid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
      usage(argv[0]);
263
263
    }
264
264
 
 
265
  if (alignment > 256 || alignment < 0)
 
266
    {
 
267
      printf("Alignment should be in the range [0, 256].\n");
 
268
      usage(argv[0]);
 
269
    }
 
270
 
265
271
  src = realign(src, alignment);
266
272
  dest = realign(dest, alignment);
267
273