1
0
Fork 0
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:
William Wilgus 2025-02-03 01:05:21 -05:00 committed by William Wilgus
parent 9e61d53c7c
commit f55fe21f66
9 changed files with 98 additions and 41 deletions

View file

@ -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)