]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /////////////////////////////////////////////////////////////// |
2 | // Copyright 2013 John Maddock. Distributed under the Boost | |
3 | // Software License, Version 1.0. (See accompanying file | |
92f5a8d4 | 4 | // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt |
7c673cae FG |
5 | |
6 | // | |
7 | // Compare arithmetic results using fixed_int to GMP results. | |
8 | // | |
9 | ||
10 | #ifdef _MSC_VER | |
92f5a8d4 | 11 | #define _SCL_SECURE_NO_WARNINGS |
7c673cae FG |
12 | #endif |
13 | ||
14 | #include <boost/multiprecision/cpp_bin_float.hpp> | |
15 | #include "test_float_serial.hpp" | |
16 | ||
17 | #if !defined(TEST1) && !defined(TEST2) | |
92f5a8d4 TL |
18 | #define TEST1 |
19 | #define TEST2 | |
7c673cae FG |
20 | #endif |
21 | ||
7c673cae FG |
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 | } |