summaryrefslogtreecommitdiff
path: root/include/svl/zformat.hxx
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-06-22 23:53:01 +0200
committerEike Rathke <erack@redhat.com>2016-07-04 22:54:39 +0000
commit051329101dc249535dd09eeb34caf1c21719064f (patch)
tree5e23665089ed0ae6a438f7a888e3d3b2f2fc797f /include/svl/zformat.hxx
parent9f8e2065c42f1724ac7a24f1bb0531e8c954698a (diff)
tdf#99996 New algorithm for fraction
This new algorithm, based on continued fraction representation: - is smarter (165 lines schrinked in 31) - gives same results for 1 to 3 digits for divider - gives better results for more than 3 digits for divider - is faster: 1.5% for 1 digit, 5% for 2 digits, 20% for 3 digits, 70% for 4 digits See details in bug report In addition - removed uncessary fonctions: ImpGGT and ImpGGTRound - forced denominator do not required anymore calculation of nFrac and nDiv - replace sal_uLong with sal_uInt32 for time - replace sal_uLong with sal_uInt64 for fraction Change-Id: I9bf3a54a5284104718a53406f8784379fd19f6e6 Reviewed-on: https://gerrit.libreoffice.org/26621 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/svl/zformat.hxx')
-rw-r--r--include/svl/zformat.hxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index b9c4101effb8..ab82bcc23313 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -555,9 +555,6 @@ private:
double& fLimit,
SvNumberformatLimitOps eOp);
- SVL_DLLPRIVATE sal_uLong ImpGGT(sal_uLong x, sal_uLong y);
- SVL_DLLPRIVATE sal_uLong ImpGGTRound(sal_uLong x, sal_uLong y);
-
// Helper function for number strings
// append string symbols, insert leading 0 or ' ', or ...
SVL_DLLPRIVATE bool ImpNumberFill( OUStringBuffer& sStr,