[Rcpp-commits] r3754 - in pkg/RcppBDT: inst/include src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Sep 1 22:42:15 CEST 2012


Author: edd
Date: 2012-09-01 22:42:15 +0200 (Sat, 01 Sep 2012)
New Revision: 3754

Modified:
   pkg/RcppBDT/inst/include/RcppBDT.h
   pkg/RcppBDT/src/RcppBDTdu.cpp
   pkg/RcppBDT/src/RcppBDTpt.cpp
Log:
moved define for nanosecond resolution from two cpp files to h file


Modified: pkg/RcppBDT/inst/include/RcppBDT.h
===================================================================
--- pkg/RcppBDT/inst/include/RcppBDT.h	2012-09-01 20:40:46 UTC (rev 3753)
+++ pkg/RcppBDT/inst/include/RcppBDT.h	2012-09-01 20:42:15 UTC (rev 3754)
@@ -24,6 +24,11 @@
 
 #include <RcppCommon.h>
 
+// Setting this variable enables use of nanoseconds (as opposed to microseconds)
+// for the maximum resolution; this comes at a cost of 96 bits as opposed to 64 bits
+// We enable it to experiement with it knowing that R already has a 64 bit resolution
+#define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG 1
+
 // Setting this variable governs whether we need to link against the
 // Boost Date.Time library (eg -lboost_date_time on Debian/Ubuntu) or
 // not The functions not involving string parsing or conversion are

Modified: pkg/RcppBDT/src/RcppBDTdu.cpp
===================================================================
--- pkg/RcppBDT/src/RcppBDTdu.cpp	2012-09-01 20:40:46 UTC (rev 3753)
+++ pkg/RcppBDT/src/RcppBDTdu.cpp	2012-09-01 20:42:15 UTC (rev 3754)
@@ -19,9 +19,6 @@
 // You should have received a copy of the GNU General Public License
 // along with RcppBDT.  If not, see <http://www.gnu.org/licenses/>.
 
-// this enables use of nanoseconds 
-#define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG 1
-
 #include <RcppBDT.h>
 
 class bdtDu {

Modified: pkg/RcppBDT/src/RcppBDTpt.cpp
===================================================================
--- pkg/RcppBDT/src/RcppBDTpt.cpp	2012-09-01 20:40:46 UTC (rev 3753)
+++ pkg/RcppBDT/src/RcppBDTpt.cpp	2012-09-01 20:42:15 UTC (rev 3754)
@@ -19,9 +19,6 @@
 // You should have received a copy of the GNU General Public License
 // along with RcppBDT.  If not, see <http://www.gnu.org/licenses/>.
 
-// this enables use of nanoseconds 
-#define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG 1
-
 #include <RcppBDT.h>
 
 class bdtPt {



More information about the Rcpp-commits mailing list