summaryrefslogtreecommitdiff
path: root/source/fitz/ftoa.c
AgeCommit message (Collapse)Author
2017-04-27Include required system headers.Tor Andersson
2016-09-21Bug 697106: Mark 64bit constants as such.Robin Watts
Avoids gcc giving spurious warnings.
2016-06-14Fix typos in various parts of the code.Sebastian Rasmussen
2016-02-04Bug 696546: Minor tweaks to ftoa code.Robin Watts
Thanks to Simon Reinhardt for these.
2016-02-03Bug 696546: Add fast strtofRobin Watts
Take on a (slightly tweaked) version of Simon Reinhardt's patch. The actual logic is left entirely unchanged; minor changes have been made to the names of functions/types to avoid clashing in the cmapdump.c repeated inclusion. Currently this should really only affect xps files, as strtof is only used as fz_atof, and that's (effectively) all xps for now. I will look at updating lex_number to call this in future.
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.