forked from len0rd/rockbox
add itoa(), replace snprintf("%d") calls
we can save some space and still end up with a 20% faster function Change-Id: Ia58900122944b8527ef01a673afe18ea794acb41
This commit is contained in:
parent
9e61d53c7c
commit
f55fe21f66
9 changed files with 98 additions and 41 deletions
|
@ -806,7 +806,7 @@ static void volume_limit_load_from_cfg(void* var, char*value)
|
|||
static char* volume_limit_write_to_cfg(void* setting, char*buf, int buf_len)
|
||||
{
|
||||
int current = *(int*)setting;
|
||||
snprintf(buf, buf_len, "%d", current);
|
||||
itoa(buf, buf_len, current);
|
||||
return buf;
|
||||
}
|
||||
static bool volume_limit_is_changed(void* setting, void* defaultval)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue