Home
last modified time | relevance | path

Searched refs:safe_t (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/boost/libs/safe_numerics/example/
Dexample81.cpp6 using safe_t = boost::safe_numerics::safe< typedef
14 safe_t x(INT_MAX); in main()
15 safe_t y(2); in main()
16 safe_t z = x + y; // will fail to compile ! in main()
Dexample92.cpp41 using safe_t = boost::safe_numerics::safe< typedef
51 typedef safe_t<int8_t> int8;
52 typedef safe_t<int16_t> int16;
53 typedef safe_t<int32_t> int32;
54 typedef safe_t<uint8_t> uint8;
55 typedef safe_t<uint16_t> uint16;
56 typedef safe_t<uint32_t> uint32;
Dexample82.cpp8 using safe_t = boost::safe_numerics::safe< typedef
16 safe_t x(INT_MAX); in main()
17 safe_t y = 2; in main()
/third_party/boost/libs/safe_numerics/test/
Dtest_left_shift_constexpr.hpp24 safe_t<T1>(v1) << v2; in test_left_shift_constexpr()
25 v1 << safe_t<T2>(v2); in test_left_shift_constexpr()
26 safe_t<T1>(v1) << safe_t<T2>(v2); in test_left_shift_constexpr()
Dtest_subtract_constexpr.hpp24 safe_t<T1>(v1) - v2; in test_subtract_constexpr()
25 v1 - safe_t<T2>(v2); in test_subtract_constexpr()
26 safe_t<T1>(v1) - safe_t<T2>(v2); in test_subtract_constexpr()
Dtest_multiply_constexpr.hpp24 safe_t<T1>(v1) * v2; in test_multiply_constexpr()
25 v1 * safe_t<T2>(v2); in test_multiply_constexpr()
26 safe_t<T1>(v1) * safe_t<T2>(v2); in test_multiply_constexpr()
Dtest_add_constexpr.hpp24 safe_t<T1>(v1) + v2; in test_add_constexpr()
25 v1 + safe_t<T2>(v2); in test_add_constexpr()
26 safe_t<T1>(v1) + safe_t<T2>(v2); in test_add_constexpr()
Dtest_modulus_constexpr.hpp24 safe_t<T1>(v1) % v2; in test_modulus_constexpr()
25 v1 % safe_t<T2>(v2); in test_modulus_constexpr()
26 safe_t<T1>(v1) % safe_t<T2>(v2); in test_modulus_constexpr()
Dtest_right_shift_constexpr.hpp24 safe_t<T1>(v1) >> v2; in test_right_shift_constexpr()
25 v1 >> safe_t<T2>(v2); in test_right_shift_constexpr()
26 safe_t<T1>(v1) >> safe_t<T2>(v2); in test_right_shift_constexpr()
Dtest_or_constexpr.hpp24 safe_t<T1>(v1) | v2; in test_or_constexpr()
25 v1 | safe_t<T2>(v2); in test_or_constexpr()
26 safe_t<T1>(v1) | safe_t<T2>(v2); in test_or_constexpr()
Dtest_xor_constexpr.hpp24 safe_t<T1>(v1) ^ v2; in test_xor_constexpr()
25 v1 ^ safe_t<T2>(v2); in test_xor_constexpr()
26 safe_t<T1>(v1) ^ safe_t<T2>(v2); in test_xor_constexpr()
Dtest_divide_constexpr.hpp24 safe_t<T1>(v1) / v2; in test_divide_constexpr()
25 v1 / safe_t<T2>(v2); in test_divide_constexpr()
26 safe_t<T1>(v1) / safe_t<T2>(v2); in test_divide_constexpr()
Dtest_less_than_constexpr.hpp30 safe_t<T1>(v1) < v2; in test_less_than_constexpr()
31 v1 < safe_t<T2>(v2); in test_less_than_constexpr()
32 safe_t<T1>(v1) < safe_t<T2>(v2); in test_less_than_constexpr()
Dtest_equal_constexpr.hpp30 safe_t<T1>(v1) == v2; in test_equal_constexpr()
31 v1 == safe_t<T2>(v2); in test_equal_constexpr()
32 safe_t<T1>(v1) == safe_t<T2>(v2); in test_equal_constexpr()
Dtest_divide.hpp25 safe_t<T1> t1 = v1; in test_divide()
31 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_divide()
62 safe_t<T2> t2 = v2; in test_divide()
69 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_divide()
100 safe_t<T1> t1 = v1; in test_divide()
101 safe_t<T2> t2 = v2; in test_divide()
Dtest_subtract.hpp25 safe_t<T1> t1 = v1; in test_subtract()
29 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_subtract()
66 safe_t<T2> t2 = v2; in test_subtract()
70 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_subtract()
107 safe_t<T1> t1 = v1; in test_subtract()
108 safe_t<T2> t2 = v2; in test_subtract()
Dtest_modulus.hpp25 safe_t<T1> t1 = v1; in test_modulus()
29 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_modulus()
66 safe_t<T2> t2 = v2; in test_modulus()
70 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_modulus()
110 safe_t<T1> t1 = v1; in test_modulus()
111 safe_t<T2> t2 = v2; in test_modulus()
Dtest_add.hpp25 safe_t<T1> t1 = v1; in test_add()
28 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_add()
65 safe_t<T2> t2 = v2; in test_add()
69 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_add()
106 safe_t<T1> t1 = v1; in test_add()
107 safe_t<T2> t2 = v2; in test_add()
Dtest_or.hpp25 safe_t<T1> t1 = v1; in test_or()
29 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_or()
66 safe_t<T2> t2 = v2; in test_or()
70 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_or()
107 safe_t<T1> t1 = v1; in test_or()
108 safe_t<T2> t2 = v2; in test_or()
Dtest_and.hpp25 safe_t<T1> t1 = v1; in test_and()
29 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_and()
65 safe_t<T2> t2 = v2; in test_and()
69 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_and()
106 safe_t<T1> t1 = v1; in test_and()
107 safe_t<T2> t2 = v2; in test_and()
Dtest_equal.hpp30 safe_t<T1> t1 = v1; in test_equal()
33 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_equal()
74 safe_t<T2> t2 = v2; in test_equal()
77 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_equal()
118 safe_t<T1> t1 = v1; in test_equal()
119 safe_t<T2> t2 = v2; in test_equal()
Dtest_multiply.hpp26 safe_t<T1> t1 = v1; in test_multiply()
31 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_multiply()
68 safe_t<T2> t2 = v2; in test_multiply()
72 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_multiply()
109 safe_t<T1> t1 = v1; in test_multiply()
110 safe_t<T2> t2 = v2; in test_multiply()
Dtest_less_than.hpp30 safe_t<T1> t1 = v1; in test_less_than()
33 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_less_than()
74 safe_t<T2> t2 = v2; in test_less_than()
77 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_less_than()
118 safe_t<T1> t1 = v1; in test_less_than()
119 safe_t<T2> t2 = v2; in test_less_than()
Dtest_xor.hpp26 safe_t<T1> t1 = v1; in test_xor()
30 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_xor()
77 safe_t<T2> t2 = v2; in test_xor()
81 boost::safe_numerics::is_safe<safe_t<T2> >::value, in test_xor()
127 safe_t<T1> t1 = v1; in test_xor()
128 safe_t<T2> t2 = v2; in test_xor()
Dtest_assignment.hpp28 safe_t<T2> s2(t2); in test_assignment()
31 boost::safe_numerics::is_safe<safe_t<T1> >::value, in test_assignment()
64 safe_t<T1> s1(t1); in test_assignment()
65 safe_t<T2> s2(t2); in test_assignment()

1234