From 87ef16d3c1de7f6eb2b9ec4883e0ae62771c9a63 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 4 Jan 2016 12:12:57 +0100 Subject: Change fz_ftoa to fz_grisu to remove one extra layer of function calls. --- include/mupdf/fitz/string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3