Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / test / test_cpp_bin_float_serial.cpp
1 ///////////////////////////////////////////////////////////////
2 //  Copyright 2013 John Maddock. Distributed under the Boost
3 //  Software License, Version 1.0. (See accompanying file
4 //  LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
5
6 //
7 // Compare arithmetic results using fixed_int to GMP results.
8 //
9
10 #ifdef _MSC_VER
11 #define _SCL_SECURE_NO_WARNINGS
12 #endif
13
14 #include <boost/multiprecision/cpp_bin_float.hpp>
15 #include "test_float_serial.hpp"
16
17 #if !defined(TEST1) && !defined(TEST2)
18 #define TEST1
19 #define TEST2
20 #endif
21
22 int main()
23 {
24    using namespace boost::multiprecision;
25 #ifdef TEST1
26    test<cpp_bin_float_50>();
27 #endif
28 #ifdef TEST2
29    test<cpp_bin_float_quad>();
30 #endif
31    return boost::report_errors();
32 }