mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
lua misc tweaks and cleanup
checks button_status in rockev strpbrk_n custom implementation allows setting max search len in source string add some branch prediction where appropriate fix formatting in splash_scroller script Change-Id: Id5d8e9d83f4b3e361ccb67b403af8f9a8a31b8f0
This commit is contained in:
parent
f3ae48f552
commit
1aa739e3c3
6 changed files with 25 additions and 24 deletions
|
@ -7,7 +7,7 @@ unsigned long int strtoul(const char *ptr, char **endptr, int base)
|
|||
const char* orig;
|
||||
const char* nptr=ptr;
|
||||
|
||||
while(isspace(*nptr)) ++nptr;
|
||||
while(__unlikely(isspace(*nptr))) ++nptr;
|
||||
|
||||
if (*nptr == '-') { neg=1; nptr++; }
|
||||
else if (*nptr == '+') ++nptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue