Mark strncmp as a pure function.
Simply a performance optimisation. This has no effect on functional behaviour.
This commit is contained in:
parent
fee3af3dd3
commit
d36447b35f
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ void halt(void) NORETURN;
|
|||
void memzero(void *s, unsigned long n);
|
||||
void *memset(void *s, unsigned long c, unsigned long n);
|
||||
void *memcpy(void* ptr_dst, const void* ptr_src, unsigned long n);
|
||||
int strncmp(const char *s1, const char *s2, int n);
|
||||
int PURE strncmp(const char *s1, const char *s2, int n);
|
||||
long CONST char_to_long(char c);
|
||||
long PURE str_to_long(const char* str);
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ memcpy(void* ptr_dst, const void* ptr_src, unsigned long n)
|
|||
return ptr_dst;
|
||||
}
|
||||
|
||||
int
|
||||
int PURE
|
||||
strncmp(const char* s1, const char* s2, int n)
|
||||
{
|
||||
word_t i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue