summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/wad.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2018-01-06 07:17:04 -0500
committerFranklin Wei <git@fwei.tk>2019-07-19 22:07:41 -0400
commitb70fecf21ddc21877ec1ae7888d9c18a979e37ad (patch)
tree021ab34f99f1ff9f395a1f38b65d3c8510393229 /apps/plugins/sdl/progs/quake/wad.h
parent3e2b50ed3b58daa5e3be5ea336d276b1655565f1 (diff)
downloadrockbox-b70fecf21ddc21877ec1ae7888d9c18a979e37ad.tar.gz
rockbox-b70fecf21ddc21877ec1ae7888d9c18a979e37ad.zip
Add proper float formatting to vuprintf
Wanted to see how gnarly it is to do. Big number handling could be done with better algorithms since it can get a bit slow with large integers or tiny fractions with many lead zeros when only a few digits are needed. Anyway, it supports %e, %E, %f, %F, %g and %G. No %a or long double support seems warranted at the moment. Assumes IEEE 754 double format but it's laid out to be able to replace a function to handle others if needed. Tested in a driver program that has a duplicate vuprintf and the content was pasted in once it looked sound enough to put up a patch. Change-Id: I6dae8624d3208e644c88e36e6a17d8fc9144f988
Diffstat (limited to 'apps/plugins/sdl/progs/quake/wad.h')
0 files changed, 0 insertions, 0 deletions