]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_cpp_bin_float_serial.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / 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 http://www.boost.org/LICENSE_1_
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
23 int main()
24 {
25 using namespace boost::multiprecision;
26 #ifdef TEST1
27 test<cpp_bin_float_50>();
28 #endif
29 #ifdef TEST2
30 test<cpp_bin_float_quad>();
31 #endif
32 return boost::report_errors();
33 }
34
35
36