summaryrefslogtreecommitdiff
path: root/source/fitz/ftoa.c
AgeCommit message (Collapse)Author
2016-01-20Various formatting cleanups.Tor Andersson
2016-01-06Squash some warningsRobin Watts
2016-01-05Change fz_ftoa to fz_grisu to remove one extra layer of function calls.Tor Andersson
2016-01-05Speed up fz_ftoa.Simon Reinhardt
During pdf_save_document the main performance bottleneck is the formatting of floats to decimal ASCII representations in fz_ftoa. Fix this by using the Grisu2 algorithm, the fastest known algorithm for accurate printing of IEEE floating point numbers while minimizing the number of produced decimal digits. This requires no libc support, only integer arithmetic.
2015-03-20Workaround bug in ftoa.Tor Andersson
2014-10-22Fix warnings.Tor Andersson
2014-10-04Avoid redefinition warning from clang when building cmapdump.cJoseph Heenan
In file included from scripts/cmapdump.c:19: scripts/../source/fitz/ftoa.c:30:23: warning: redefinition of typedef 'ulong' is a C11 feature [-Wtypedef-redefinition] typedef unsigned long ulong; ^ scripts/../source/fitz/strtod.c:30:23: note: previous definition is here typedef unsigned long ulong; ^ 1 warning generated. (Apparently in earlier versions of clang this is an error.)
2014-09-22Fix 695467: Add and use fz_ftoa function (like dtoa but with floats).Tor Andersson
The dtoa function is for doubles (which is what MuJS uses) but for MuPDF we only need and want float precision in our output formatting.