performance: add few restict and const key words

This should make the run to be couple percentages quicker.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-11-05 21:05:42 +00:00
parent dbf3927c39
commit b61c93b7a1
3 changed files with 5 additions and 5 deletions

View file

@ -168,7 +168,7 @@ int do_counting(void);
void flip_ranges(struct range_t *__restrict ranges, struct range_t *__restrict tmp_ranges)
__attribute__ ((nonnull(1, 2)));
/* support functions */
int xstrstr(char *__restrict a, const char *__restrict b, int len);
int xstrstr(const char *__restrict a, const char *__restrict b, int len);
double strtod_or_err(const char *__restrict str, const char *__restrict errmesg);
void print_version(void) __attribute__ ((noreturn));
void usage(int status) __attribute__ ((noreturn));