summaryrefslogtreecommitdiff
path: root/include/tools/date.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-07-08 11:49:59 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-07-08 14:33:42 +0100
commita2b44216f1b1e8d7f4f293e13b257f49ae13de61 (patch)
tree7cf399655196a6421744573a4f78ec1a82ab1282 /include/tools/date.hxx
parentf692c88e6062889aa12bf6cd7a71f63d177a37c4 (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/date.hxx')
-rw-r--r--include/tools/date.hxx3
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