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

@ -50,7 +50,7 @@ int
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
__attribute__ ((hot))
#endif
xstrstr(char *restrict a, const char *restrict b, int len)
xstrstr(const char *restrict a, const char *restrict b, const int len)
{
int i;
/* two spaces are very common in lease file, after them