Home
last modified time | relevance | path

Searched refs:int_type (Results 1 – 25 of 186) sorted by relevance

12345678

/third_party/boost/libs/date_time/test/
Dtestint_adapter.cpp14 template<typename int_type>
22 std::cout << "min: " << (int_type::min)().as_number() << std::endl; in print()
23 std::cout << "max: " << (int_type::max)().as_number() << std::endl; in print()
25 int_type::neg_infinity().as_number() << std::endl; in print()
27 int_type::pos_infinity().as_number() << std::endl; in print()
29 int_type::not_a_number().as_number() << std::endl; in print()
32 int_type i = int_type::neg_infinity(); in print()
37 i = int_type::pos_infinity(); in print()
43 i = int_type::not_a_number(); in print()
58 template<typename int_type>
[all …]
Dtestgeneric_period.cpp15 template<class int_type>
18 duration_type(int_type a = 0) : _val(a) {} in duration_type()
19 static int_type unit() { return 1; } in unit()
20 int_type get_rep() { return _val; } in get_rep()
21 bool operator==(duration_type<int_type> rhs) { return _val == rhs._val; } in operator ==()
22 bool operator<(duration_type<int_type> rhs) { return _val < rhs._val; } in operator <()
23 bool operator>(duration_type<int_type> rhs) { return _val > rhs._val; } in operator >()
25 int_type _val;
28 template<class int_type>
30 std::ostream& operator<<(std::ostream& os, duration_type<int_type> dt){ in operator <<()
[all …]
/third_party/boost/boost/date_time/
Dint_adapter.hpp48 typedef int_type_ int_type; typedef in boost::date_time::int_adapter
49 BOOST_CXX14_CONSTEXPR int_adapter(int_type v) : in int_adapter()
58 return (::std::numeric_limits<int_type>::max)(); in pos_infinity()
62 return (::std::numeric_limits<int_type>::min)(); in neg_infinity()
66 return (::std::numeric_limits<int_type>::max)()-1; in not_a_number()
70 return (::std::numeric_limits<int_type>::max)()-2; in BOOST_PREVENT_MACRO_SUBSTITUTION()
74 return (::std::numeric_limits<int_type>::min)()+1; in BOOST_PREVENT_MACRO_SUBSTITUTION()
87 static BOOST_CONSTEXPR bool is_inf(int_type v) in is_inf()
92 static BOOST_CXX14_CONSTEXPR bool is_neg_inf(int_type v) in is_neg_inf()
96 static BOOST_CXX14_CONSTEXPR bool is_pos_inf(int_type v) in is_pos_inf()
[all …]
Dwrapping_int.hpp34 typedef int_type_ int_type; typedef in boost::date_time::wrapping_int
36 static BOOST_CONSTEXPR int_type wrap_value() {return wrap_val;} in wrap_value()
38 BOOST_CXX14_CONSTEXPR wrapping_int(int_type v) : value_(v) {} in wrapping_int()
40 BOOST_CONSTEXPR int_type as_int() const {return value_;} in as_int()
41 BOOST_CONSTEXPR operator int_type() const {return value_;} in operator int_type()
50 int_type remainder = static_cast<int_type>(v % (wrap_val)); in add()
52 value_ = static_cast<int_type>(value_ + remainder); in add()
64 int_type remainder = static_cast<int_type>(v % (wrap_val)); in subtract()
66 value_ = static_cast<int_type>(value_ - remainder); in subtract()
70 int_type value_;
[all …]
Dtime_resolution_traits.hpp32 typedef boost::int32_t int_type; typedef
34 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i;} in as_number()
40 typedef boost::int32_t int_type; typedef
42 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i.as_number();} in as_number()
48 typedef boost::int64_t int_type; typedef
50 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i;} in as_number()
56 typedef boost::int64_t int_type; typedef
58 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i){ return i.as_number();} in as_number()
91 typename frac_sec_type::int_type resolution_adjust,
97 typedef typename frac_sec_type::int_type fractional_seconds_type;
[all …]
Ddate_duration_types.hpp45 typedef typename int_rep::int_type int_type; typedef in boost::date_time::months_duration
95 BOOST_CXX14_CONSTEXPR months_type operator*(const int_type rhs)const in operator *()
99 BOOST_CXX14_CONSTEXPR months_type& operator*=(const int_type rhs) in operator *=()
104 BOOST_CXX14_CONSTEXPR months_type operator/(const int_type rhs)const in operator /()
108 BOOST_CXX14_CONSTEXPR months_type& operator/=(const int_type rhs) in operator /=()
165 typedef typename int_rep::int_type int_type; typedef in boost::date_time::years_duration
215 BOOST_CXX14_CONSTEXPR years_type operator*(const int_type rhs)const in operator *()
219 BOOST_CXX14_CONSTEXPR years_type& operator*=(const int_type rhs) in operator *=()
224 BOOST_CXX14_CONSTEXPR years_type operator/(const int_type rhs)const in operator /()
228 BOOST_CXX14_CONSTEXPR years_type& operator/=(const int_type rhs) in operator /=()
Ddate_duration.hpp33 typedef typename duration_rep_traits::int_type duration_rep_type;
126 typedef long int_type; typedef
128 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i) { return i; } in as_number()
136 typedef long int_type; typedef
138 static BOOST_CXX14_CONSTEXPR int_type as_number(impl_type i) { return i.as_number(); } in as_number()
/third_party/json/include/nlohmann/detail/input/
Dinput_adapters.hpp49 std::char_traits<char>::int_type get_character() noexcept in get_character()
102 std::char_traits<char>::int_type get_character() in get_character()
130 typename std::char_traits<char_type>::int_type get_character() in get_character()
167 std::array<std::char_traits<char>::int_type, 4>& utf8_bytes, in fill_buffer()
186 utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(wc); in fill_buffer()
191 …utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xC0u | ((static_cast<unsigned int>(… in fill_buffer()
192 …utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(w… in fill_buffer()
197 …utf8_bytes[0] = static_cast<std::char_traits<char>::int_type>(0xE0u | ((static_cast<unsigned int>(… in fill_buffer()
198 …utf8_bytes[1] = static_cast<std::char_traits<char>::int_type>(0x80u | ((static_cast<unsigned int>(… in fill_buffer()
199 …utf8_bytes[2] = static_cast<std::char_traits<char>::int_type>(0x80u | (static_cast<unsigned int>(w… in fill_buffer()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dfuzzerutil_test.cpp1608 const uint32_t int_type = 6; // The id of OpTypeInt 32 1 in TEST() local
1614 int_type, uint_type), in TEST()
1618 int_type, uint_type)); in TEST()
1620 int_type, uint_type)); in TEST()
1625 context.get(), SpvOpAtomicExchange, 0, int_type, uint_type), in TEST()
1629 1, int_type, uint_type)); in TEST()
1631 2, int_type, uint_type)); in TEST()
1633 context.get(), SpvOpAtomicExchange, 3, int_type, uint_type)); in TEST()
1638 0, int_type, uint_type), in TEST()
1642 int_type, uint_type)); in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dfuzzerutil_test.cpp1608 const uint32_t int_type = 6; // The id of OpTypeInt 32 1 in TEST() local
1614 int_type, uint_type), in TEST()
1618 int_type, uint_type)); in TEST()
1620 int_type, uint_type)); in TEST()
1625 context.get(), SpvOpAtomicExchange, 0, int_type, uint_type), in TEST()
1629 1, int_type, uint_type)); in TEST()
1631 2, int_type, uint_type)); in TEST()
1633 context.get(), SpvOpAtomicExchange, 3, int_type, uint_type)); in TEST()
1638 0, int_type, uint_type), in TEST()
1642 int_type, uint_type)); in TEST()
[all …]
/third_party/abseil-cpp/absl/strings/
Dnumbers.h65 template <typename int_type>
66 ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
156 template <typename int_type>
157 char* FastIntToBuffer(int_type i, char* buffer) { in FastIntToBuffer()
163 if (static_cast<int_type>(1) - 2 < 0) { // Signed in FastIntToBuffer()
180 template <typename int_type>
181 ABSL_MUST_USE_RESULT bool safe_strtoi_base(absl::string_view s, int_type* out, in safe_strtoi_base()
185 static_assert(!std::is_floating_point<int_type>::value, in safe_strtoi_base()
191 if (static_cast<int_type>(1) - 2 < 0) { // Signed in safe_strtoi_base()
195 *out = static_cast<int_type>(val); in safe_strtoi_base()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dnumbers.h64 template <typename int_type>
65 ABSL_MUST_USE_RESULT bool SimpleAtoi(absl::string_view str, int_type* out);
158 template <typename int_type>
159 char* FastIntToBuffer(int_type i, char* buffer) { in FastIntToBuffer()
165 if (static_cast<int_type>(1) - 2 < 0) { // Signed in FastIntToBuffer()
182 template <typename int_type>
183 ABSL_MUST_USE_RESULT bool safe_strtoi_base(absl::string_view s, int_type* out, in safe_strtoi_base()
187 static_assert(!std::is_floating_point<int_type>::value, in safe_strtoi_base()
193 if (static_cast<int_type>(1) - 2 < 0) { // Signed in safe_strtoi_base()
197 *out = static_cast<int_type>(val); in safe_strtoi_base()
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h169 using int_type = void;
192 using int_type = int32_t;
206 using int_type = int64_t;
220 using int_type = int16_t;
244 using int_type = typename Traits::int_type;
307 static const int_type max_exponent =
310 static const int_type min_exponent = -static_cast<int_type>(exponent_bias);
330 const int_type getUnbiasedExponent() const {
331 return static_cast<int_type>(getExponentBits() - exponent_bias);
341 const int_type getUnbiasedNormalizedExponent() const {
[all …]
/third_party/boost/libs/lockfree/test/
Dtest_helpers.hpp17 template <typename int_type>
18 int_type generate_id(void) in generate_id()
20 static boost::lockfree::detail::atomic<int_type> generator(0); in generate_id()
24 template <typename int_type, size_t buckets>
29 int calc_index(int_type id) in calc_index()
37 bool insert(int_type const & id) in insert()
43 std::pair<typename std::set<int_type>::iterator, bool> p; in insert()
49 bool find (int_type const & id) in find()
58 bool erase(int_type const & id) in erase()
84 boost::array<std::set<int_type>, buckets> data;
/third_party/boost/boost/format/detail/
Dworkarounds_gcc-2_95.hpp116 typedef int int_type; typedef in boost::io::CompatTraits
121 to_char_type(const int_type& meta) { in to_char_type()
123 static int_type
125 return static_cast<int_type>(static_cast<unsigned char>(ch) );} in to_int_type()
127 eq_int_type(const int_type& left, const int_type& right) { in eq_int_type()
129 static int_type
131 return static_cast<int_type>(EOF); in eof()
133 static int_type
134 not_eof(const int_type& meta) { in not_eof()
/third_party/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h215 using int_type = void;
238 using int_type = int32_t;
252 using int_type = int64_t;
266 using int_type = int16_t;
290 using int_type = typename Traits::int_type;
352 static const int_type max_exponent =
355 static const int_type min_exponent = -static_cast<int_type>(exponent_bias);
374 const int_type getUnbiasedExponent() const {
375 return static_cast<int_type>(getExponentBits() - exponent_bias);
385 const int_type getUnbiasedNormalizedExponent() const {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
Dhex_float.h215 using int_type = void;
238 using int_type = int32_t;
252 using int_type = int64_t;
266 using int_type = int16_t;
290 using int_type = typename Traits::int_type;
352 static const int_type max_exponent =
355 static const int_type min_exponent = -static_cast<int_type>(exponent_bias);
374 const int_type getUnbiasedExponent() const {
375 return static_cast<int_type>(getExponentBits() - exponent_bias);
385 const int_type getUnbiasedNormalizedExponent() const {
[all …]
/third_party/boost/libs/safe_numerics/test/
Dtest_rational.cpp43 using int_type = safe<int>; typedef
47 rational<int_type> half(1,2); in main()
48 rational<int_type> one(1); in main()
49 rational<int_type> two(2); in main()
57 ! boost::safe_numerics::is_safe<rational<int_type>>::value, in main()
75 rational<int_type> minus_half(-1,2); in main()
81 rational<int_type> big(maxint, 2); in main()
99 rational<int_type> r; // Forgot to initialise - set to 0 in main()
/third_party/boost/libs/math/reporting/performance/
Dtest_gcd.cpp184 typedef T int_type; in test_type() typedef
185 std::vector<pair<int_type, int_type> > data; in test_type()
195 typedef pair< function<int_type(int_type, int_type)>, string> f_test; in test_type()
197 { gcd_default<int_type>, "gcd" }, in test_type()
198 { Euclid_gcd<int_type>, "Euclid_gcd" }, in test_type()
199 { Stein_gcd<int_type>, "Stein_gcd" } , in test_type()
200 { mixed_binary_gcd<int_type>, "mixed_binary_gcd" }, in test_type()
201 { binary_textbook<int_type>, "Stein_gcd_textbook" }, in test_type()
202 { euclid_textbook<int_type>, "gcd_euclid_textbook" }, in test_type()
204 …for_each(begin(test_functions), end(test_functions), test_function_template<int_type>(data, row_na… in test_type()
[all …]
/third_party/boost/boost/iostreams/detail/
Dtranslate_int_type.hpp28 typename TargetTr::int_type
29 translate_int_type(typename SourceTr::int_type c) in translate_int_type()
41 static typename TargetTr::int_type
42 translate(typename SourceTr::int_type c) { return c; } in translate()
50 static typename TargetTr::int_type
51 translate(typename SourceTr::int_type c) in translate()
/third_party/boost/libs/utility/test/
Dstring_view_constexpr_test1.cpp24 typedef int int_type; typedef
40 …static constexpr int_type not_eof(int_type c) noexcept { return eq_int_type(c, eof()) ? ~eof() : … in not_eof()
41 … static constexpr char_type to_char_type(int_type c) noexcept { return char_type(c); } in to_char_type()
42 … static constexpr int_type to_int_type(char_type c) noexcept { return int_type(c); } in to_int_type()
43 static constexpr bool eq_int_type(int_type c1, int_type c2) noexcept { return c1 == c2; } in eq_int_type()
44 static constexpr int_type eof() noexcept { return EOF; } in eof()
/third_party/boost/boost/iostreams/detail/streambuf/
Dchainbuf.hpp54 int_type underflow() in underflow()
56 int_type pbackfail(int_type c) in pbackfail()
60 int_type overflow(int_type c) in overflow()
83 static typename chain_traits::int_type
84 translate(typename std_traits::int_type c) in translate()
/third_party/boost/boost/process/
Dpipe.hpp41 typedef typename Traits::int_type int_type ; typedef in boost::process::basic_pipe
77 int_type write(const char_type * data, int_type count);
79 int_type read(char_type * data, int_type count);
106 typedef typename Traits::int_type int_type ; typedef
163 int_type overflow(int_type ch = traits_type::eof()) override in overflow()
194 int_type underflow() override in underflow()
206 static_cast<typename pipe_type::int_type>(len)); in underflow()
273 static_cast<typename pipe_type::int_type>(this->pptr() - base)); in _write_impl()
307 typedef typename Traits::int_type int_type ; typedef in boost::process::basic_ipstream
418 typedef typename Traits::int_type int_type ; typedef in boost::process::basic_opstream
[all …]
/third_party/boost/boost/process/detail/posix/
Dbasic_pipe.hpp35 typedef typename Traits::int_type int_type ; typedef in boost::process::detail::posix::basic_pipe
83 int_type write(const char_type * data, int_type count) in write()
85 int_type write_len; in write()
95 int_type read(char_type * data, int_type count) in read()
97 int_type read_len; in read()
/third_party/boost/libs/chrono/example/
Dsaturating.cpp56 typedef I int_type; typedef in User2::saturate
58 static const int_type nan = int_type(int_type(1) << (sizeof(int_type) * CHAR_BIT - 1));
59 static const int_type neg_inf = nan + 1;
60 static const int_type pos_inf = -neg_inf;
62 int_type i_;
71 explicit saturate(int_type i) : i_(i) {} in saturate()
73 operator int_type() const;
82 saturate& operator++() {*this += saturate(int_type(1)); return *this;} in operator ++()
84 saturate& operator--() {*this -= saturate(int_type(1)); return *this;} in operator --()
269 int_type x_i_ = x.i_ < 0 ? -x.i_ : x.i_; in operator *=()

12345678