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
|
|
@ -456,7 +456,7 @@ void cfg_to_string(const struct settings_list *setting, char* buf, int buf_len)
|
|||
break; /* we got a value */
|
||||
}
|
||||
|
||||
snprintf(buf, buf_len, "%d", *(int*)setting->setting);
|
||||
itoa(buf, buf_len, *(int*)setting->setting);
|
||||
break;
|
||||
case F_T_BOOL:
|
||||
cfg_int_to_string(setting, *(bool*)setting->setting, buf, buf_len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue