diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-07-08 11:49:59 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-07-08 14:33:42 +0100 |
commit | a2b44216f1b1e8d7f4f293e13b257f49ae13de61 (patch) | |
tree | 7cf399655196a6421744573a4f78ec1a82ab1282 /include/tools | |
parent | f692c88e6062889aa12bf6cd7a71f63d177a37c4 (diff) |
fdo#66507 - accelerate common datum date conversion to days.
Saves ~40bn cycles, 10% of calculation for the bug document.
Change-Id: I9d48706ad2cfe290965b648306d95b4d66e5fc63
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/date.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx index 6b08e4a5ad48..e7505733c2a3 100644 --- a/include/tools/date.hxx +++ b/include/tools/date.hxx @@ -190,6 +190,9 @@ public: /// Semantically identical to Normalize() member method. static bool Normalize( sal_uInt16 & rDay, sal_uInt16 & rMonth, sal_uInt16 & rYear ); + private: + /// An accelerated form of DateToDays on this date + long GetAsNormalizedDays() const; }; #endif |