From a2b44216f1b1e8d7f4f293e13b257f49ae13de61 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 8 Jul 2014 11:49:59 +0100 Subject: fdo#66507 - accelerate common datum date conversion to days. Saves ~40bn cycles, 10% of calculation for the bug document. Change-Id: I9d48706ad2cfe290965b648306d95b4d66e5fc63 --- include/tools/date.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/tools') 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 -- cgit