]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/safe_numerics/test/test_divide_native_results.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / safe_numerics / test / test_divide_native_results.hpp
1 #ifndef BOOST_SAFE_NUMERICS_TEST_DIVIDE_NATIVE_RESULTS_HPP
2 #define BOOST_SAFE_NUMERICS_TEST_DIVIDE_NATIVE_RESULTS_HPP
3
4 // Copyright (c) 2019 Robert Ramey
5 //
6 // Distributed under the Boost Software License, Version 1.0. (See
7 // accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9
10 #include "test_values.hpp"
11
12 // note: These tables presume that the the size of an int is 32 bits.
13 // This should be changed for a different architecture or better yet
14 // be dynamically adjusted depending on the indicated architecture
15
16 constexpr const char *test_division_native_result[
17 boost::mp11::mp_size<test_values>::value
18 ] = {
19 // 0 0 0 0
20 // 012345670123456701234567012345670
21 // 012345678901234567890123456789012
22 /* 0*/ "................................x",
23 /* 1*/ "................................x",
24 /* 2*/ "........................xxxxxxxxx",
25 /* 3*/ "........................xxxxxxxxx",
26 /* 4*/ "................................x",
27 /* 5*/ "................................x",
28 /* 6*/ "........................xxxxxxxxx",
29 /* 7*/ "........................xxxxxxxxx",
30
31 /* 8*/ "................................x",
32 /* 9*/ "................................x",
33 /*10*/ "...x...x...x............xxxxxxxxx",
34 /*11*/ "........................xxxxxxxxx",
35 /*12*/ "................................x",
36 /*13*/ "................................x",
37 /*14*/ "...x...x...x...x............xxxxx",
38 /*15*/ "............................xxxxx",
39
40 // 0 0 0 0
41 // 012345670123456701234567012345670
42 // 012345678901234567890123456789012
43 /*16*/ "................................x",
44 /*17*/ "................................x",
45 /*18*/ "................................x",
46 /*19*/ "................................x",
47 /*20*/ "................................x",
48 /*21*/ "................................x",
49 /*22*/ "................................x",
50 /*23*/ "................................x",
51
52 /*24*/ "..xx..xx..xx....................x",
53 /*25*/ "..xx..xx..xx....................x",
54 /*26*/ "..xx..xx..xx....................x",
55 /*27*/ "..xx..xx..xx....................x",
56 /*28*/ "..xx..xx..xx..xx................x",
57 /*29*/ "..xx..xx..xx..xx................x",
58 /*30*/ "..xx..xx..xx..xx................x",
59 /*31*/ "..xx..xx..xx..xx................x",
60 /*32*/ "................................x"
61 };
62
63 #endif // BOOST_SAFE_NUMERICS_TEST_DIVIDE_NATIVE_RESULTS_HPP