summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/multiprecision/test/test_cpp_bin_float_serial.cpp
blob: 6ace108982db1f51b91f5b83dc4ed88f4c2b21b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
///////////////////////////////////////////////////////////////
//  Copyright 2013 John Maddock. Distributed under the Boost
//  Software License, Version 1.0. (See accompanying file
//  LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt

//
// Compare arithmetic results using fixed_int to GMP results.
//

#ifdef _MSC_VER
#define _SCL_SECURE_NO_WARNINGS
#endif

#include <boost/multiprecision/cpp_bin_float.hpp>
#include "test_float_serial.hpp"

#if !defined(TEST1) && !defined(TEST2)
#define TEST1
#define TEST2
#endif

int main()
{
   using namespace boost::multiprecision;
#ifdef TEST1
   test<cpp_bin_float_50>();
#endif
#ifdef TEST2
   test<cpp_bin_float_quad>();
#endif
   return boost::report_errors();
}