/third_party/boost/libs/safe_numerics/example/ |
D | example81.cpp | 6 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()
|
D | example92.cpp | 41 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;
|
D | example82.cpp | 8 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/ |
D | test_left_shift_constexpr.hpp | 24 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()
|
D | test_subtract_constexpr.hpp | 24 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()
|
D | test_multiply_constexpr.hpp | 24 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()
|
D | test_add_constexpr.hpp | 24 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()
|
D | test_modulus_constexpr.hpp | 24 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()
|
D | test_right_shift_constexpr.hpp | 24 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()
|
D | test_or_constexpr.hpp | 24 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()
|
D | test_xor_constexpr.hpp | 24 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()
|
D | test_divide_constexpr.hpp | 24 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()
|
D | test_less_than_constexpr.hpp | 30 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()
|
D | test_equal_constexpr.hpp | 30 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()
|
D | test_divide.hpp | 25 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()
|
D | test_subtract.hpp | 25 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()
|
D | test_modulus.hpp | 25 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()
|
D | test_add.hpp | 25 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()
|
D | test_or.hpp | 25 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()
|
D | test_and.hpp | 25 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()
|
D | test_equal.hpp | 30 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()
|
D | test_multiply.hpp | 26 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()
|
D | test_less_than.hpp | 30 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()
|
D | test_xor.hpp | 26 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()
|
D | test_assignment.hpp | 28 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()
|