Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82431 - trunk/libs/multiprecision/test
From: john_at_[hidden]
Date: 2013-01-10 06:25:16


Author: johnmaddock
Date: 2013-01-10 06:25:15 EST (Thu, 10 Jan 2013)
New Revision: 82431
URL: http://svn.boost.org/trac/boost/changeset/82431

Log:
Split test_arithmetic_mpfr_50.cpp into two tests for faster compiles / smaller memory usage.
Added:
   trunk/libs/multiprecision/test/test_arithmetic_mpfr_50_static.cpp (contents, props changed)
Text files modified:
   trunk/libs/multiprecision/test/Jamfile.v2 | 1 +
   trunk/libs/multiprecision/test/test_arithmetic_mpfr_50.cpp | 1 -
   2 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/multiprecision/test/Jamfile.v2
==============================================================================
--- trunk/libs/multiprecision/test/Jamfile.v2 (original)
+++ trunk/libs/multiprecision/test/Jamfile.v2 2013-01-10 06:25:15 EST (Thu, 10 Jan 2013)
@@ -72,6 +72,7 @@
 
 run test_arithmetic_mpfr.cpp mpfr gmp : : : [ check-target-builds ../config//has_mpfr : : <build>no ] ;
 run test_arithmetic_mpfr_50.cpp mpfr gmp : : : [ check-target-builds ../config//has_mpfr : : <build>no ] ;
+run test_arithmetic_mpfr_50_static.cpp mpfr gmp : : : [ check-target-builds ../config//has_mpfr : : <build>no ] ;
 
 run test_arithmetic_tommath.cpp $(TOMMATH) : : : [ check-target-builds ../config//has_tommath : : <build>no ] ;
 run test_arithmetic_tommath_br.cpp $(TOMMATH) : : : [ check-target-builds ../config//has_tommath : : <build>no ] ;

Modified: trunk/libs/multiprecision/test/test_arithmetic_mpfr_50.cpp
==============================================================================
--- trunk/libs/multiprecision/test/test_arithmetic_mpfr_50.cpp (original)
+++ trunk/libs/multiprecision/test/test_arithmetic_mpfr_50.cpp 2013-01-10 06:25:15 EST (Thu, 10 Jan 2013)
@@ -20,7 +20,6 @@
 int main()
 {
    test<boost::multiprecision::mpfr_float_50>();
- test<boost::multiprecision::static_mpfr_float_50>();
    return boost::report_errors();
 }
 

Added: trunk/libs/multiprecision/test/test_arithmetic_mpfr_50_static.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/multiprecision/test/test_arithmetic_mpfr_50_static.cpp 2013-01-10 06:25:15 EST (Thu, 10 Jan 2013)
@@ -0,0 +1,25 @@
+///////////////////////////////////////////////////////////////
+// Copyright 2012 John Maddock. Distributed under the Boost
+// Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
+
+#ifdef _MSC_VER
+# define _SCL_SECURE_NO_WARNINGS
+#endif
+
+#include <boost/multiprecision/mpfr.hpp>
+#define TEST_MPFR
+#include "test_arithmetic.hpp"
+
+template <unsigned D>
+struct related_type<boost::multiprecision::number< boost::multiprecision::mpfr_float_backend<D> > >
+{
+ typedef boost::multiprecision::number< boost::multiprecision::mpfr_float_backend<D/2> > type;
+};
+
+int main()
+{
+ test<boost::multiprecision::static_mpfr_float_50>();
+ return boost::report_errors();
+}
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk