]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_cpp_dec_float_serial.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_cpp_dec_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_dec_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_dec_float_50>();
27 #endif
28 #ifdef TEST2
29 test<number<cpp_dec_float<100, std::int64_t, std::allocator<char> > > >();
30 #endif
31 return boost::report_errors();
32 }