diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-04 12:12:57 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-05 14:47:37 +0100 |
commit | 87ef16d3c1de7f6eb2b9ec4883e0ae62771c9a63 (patch) | |
tree | fd4e52c9c6eba0f549889aec01098e5abe9b002d /include | |
parent | cd2f3892277db2041ee00cedbd6bff9a5e0dd461 (diff) | |
download | mupdf-87ef16d3c1de7f6eb2b9ec4883e0ae62771c9a63.tar.xz |
Change fz_ftoa to fz_grisu to remove one extra layer of function calls.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mupdf/fitz/string.h b/include/mupdf/fitz/string.h index 010dc46a..0c1789bc 100644 --- a/include/mupdf/fitz/string.h +++ b/include/mupdf/fitz/string.h @@ -108,11 +108,11 @@ int fz_runelen(int rune); double fz_strtod(const char *s, char **es); /* - fz_ftoa: Compute decimal integer m, exp such that: + fz_grisu: Compute decimal integer m, exp such that: f = m * 10^exp m is as short as possible without losing exactness Assumes special cases (NaN, +Inf, -Inf) have been handled. */ -void fz_ftoa(float f, char *s, int *exp, int *neg, int *ns); +int fz_grisu(float f, char *s, int *exp); #endif |