Home
last modified time | relevance | path

Searched refs:to_integral (Results 1 – 25 of 123) sorted by relevance

12345

/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/src/runtime/crt/utvm_rpc_common/
H A Dframing.cc58 static constexpr uint8_t to_integral(E e) { in to_integral() function
110 if (input_[i] == to_integral(Escape::kEscapeStart)) { in FindPacketStart()
139 if (c == to_integral(Escape::kPacketStart)) { in ConsumeInput()
149 } else if (c == to_integral(Escape::kEscapeNop)) { in ConsumeInput()
151 } else if (c == to_integral(Escape::kEscapeStart)) { in ConsumeInput()
159 } else if (c == to_integral(Escape::kEscapeStart)) { in ConsumeInput()
305 packet_header[ptr] = to_integral(Escape::kEscapeNop); in StartPacket()
316 packet_header[ptr] = to_integral(Escape::kEscapeStart); in StartPacket()
318 packet_header[ptr] = to_integral(Escape::kPacketStart); in StartPacket()
357 buffer[buffer_ptr] = to_integral(Escape::kEscapeStart); in WriteAndCrc()
[all …]
/dports/ftp/libfilezilla/libfilezilla-0.31.1/lib/
H A Dtime.cpp820 int day = to_integral<int>(tokens[1]); in do_set_rfc822()
823 day = to_integral<int>(tokens[2]); in do_set_rfc822()
830 int year = to_integral<int>(tokens[6]); in do_set_rfc822()
835 year = to_integral<int>(tokens[3]); in do_set_rfc822()
839 hour = to_integral<int>(tokens[4]); in do_set_rfc822()
840 minute = to_integral<int>(tokens[5]); in do_set_rfc822()
841 second = to_integral<int>(tokens[6]); in do_set_rfc822()
844 hour = to_integral<int>(tokens[3]); in do_set_rfc822()
845 minute = to_integral<int>(tokens[4]); in do_set_rfc822()
846 second = to_integral<int>(tokens[5]); in do_set_rfc822()
[all …]
/dports/devel/fatal/fatal-2021.12.27.00/fatal/type/
H A Dscalar.h107 to_integral(T const value) { in to_integral() function
136 static_cast<T>(to_integral(lhs) | to_integral(rhs)), in bitwise_merge()
165 static_cast<T>(to_integral(lhs) & to_integral(rhs)), in bitwise_filter()
204 ~to_integral( in bitwise_disable()
265 return to_integral( in bitwise_has_any()
/dports/multimedia/oggvideotools/oggvideotools-0.9.1/src/base/
H A DoggTypes.h35 constexpr auto to_integral(E e) -> typename std::underlying_type<E>::type {
39 #define to_integral(a) (int)(a) macro
52 static const uint8_t OggTypeMap[to_integral(OggType::maxOggType)][MAXIDCHARS] = {
/dports/devel/entt/entt-3.8.1/test/entt/entity/
H A Dentity.cpp15 ASSERT_EQ(entt::to_integral(entity), traits_type::to_integral(entity)); in TEST()
16 ASSERT_NE(entt::to_integral(entity), entt::to_integral<entt::entity>(entt::null)); in TEST()
17 ASSERT_NE(entt::to_integral(entity), entt::to_integral(entt::entity{})); in TEST()
/dports/devel/fbthrift/fbthrift-2021.12.27.00/thrift/lib/cpp2/reflection/demo/
H A Denum_basics.cpp33 << fatal::to_integral(Field::value::value) << '\n'; in operator ()()
50 auto integral = fatal::to_integral(e); in print_enum_info()
72 << fatal::to_integral(value) << '\n'; in try_string_to_enum()
85 << fatal::to_integral(value) << '\n'; in string_to_enum()
/dports/devel/fatal/fatal-2021.12.27.00/fatal/type/test/
H A Dscalar_test.cpp72 FATAL_TEST(to_integral, enum) { in FATAL_TEST() argument
73 FATAL_EXPECT_EQ_SAME(unsigned, 1, to_integral(Ea)); in FATAL_TEST()
74 FATAL_EXPECT_EQ_SAME(unsigned, 2, to_integral(Eb)); in FATAL_TEST()
75 FATAL_EXPECT_EQ_SAME(unsigned, 4, to_integral(Ec)); in FATAL_TEST()
77 FATAL_EXPECT_EQ_SAME(std::int16_t, 1, to_integral(Eia)); in FATAL_TEST()
78 FATAL_EXPECT_EQ_SAME(std::int16_t, 2, to_integral(Eib)); in FATAL_TEST()
79 FATAL_EXPECT_EQ_SAME(std::int16_t, 4, to_integral(Eic)); in FATAL_TEST()
82 FATAL_TEST(to_integral, enum class) { in FATAL_TEST() argument
83 FATAL_EXPECT_EQ_SAME(unsigned, 1, to_integral(EC::a)); in FATAL_TEST()
84 FATAL_EXPECT_EQ_SAME(unsigned, 2, to_integral(EC::b)); in FATAL_TEST()
[all …]
/dports/devel/entt/entt-3.8.1/src/entt/entity/
H A Dentity.hpp95 [[nodiscard]] static constexpr entity_type to_integral(const value_type value) ENTT_NOEXCEPT { in to_integral() function in entt::entt_traits
105 return (to_integral(value) & traits_type::entity_mask); in to_entity()
115 return ((to_integral(value) & mask) >> traits_type::entity_shift); in to_version()
141 [[nodiscard]] constexpr auto to_integral(const Entity entity) ENTT_NOEXCEPT { in to_integral() function
142 return entt_traits<Entity>::to_integral(entity); in to_integral()
/dports/x11-toolkits/vte3/vte-0.64.2/src/
H A Dclipboard-gtk.cc153 if (info != vte::to_integral(ClipboardFormat::TEXT) && in clipboard_get_cb()
154 info != vte::to_integral(ClipboardFormat::HTML)) in clipboard_get_cb()
181 … vte::to_integral(ClipboardFormat::TEXT)); in targets_for_format()
196 … vte::to_integral(ClipboardFormat::TEXT)); in targets_for_format()
200 vte::to_integral(ClipboardFormat::HTML)); in targets_for_format()
H A Dcxx-utils.hh41 inline constexpr auto to_integral(E e) noexcept in to_integral() function
/dports/devel/py-isodate/isodate-0.6.0/src/isodate/
H A Disotime.py132 int(second), int(microsecond.to_integral()),
139 int(microsecond.to_integral()), tzinfo)
147 int(microsecond.to_integral()), tzinfo)
/dports/devel/entt/entt-3.8.1/test/lib/registry/
H A Dmain.cpp24 ASSERT_EQ(position.x, static_cast<int>(entt::to_integral(entity) + 16)); in TEST()
25 ASSERT_EQ(position.y, static_cast<int>(entt::to_integral(entity) + 16)); in TEST()
/dports/ftp/filezilla/filezilla-3.55.1/src/storj/
H A Dfzstorj.cpp230 buffer = memory + fz::to_integral<uintptr_t>(next_argument(line)); in downloadObject()
231 capacity = fz::to_integral<size_t>(next_argument(line)); in downloadObject()
298 buffer = memory + fz::to_integral<uintptr_t>(next_argument(line)); in uploadObject()
299 remaining = fz::to_integral<size_t>(next_argument(line)); in uploadObject()
477 …auto get_mapping = [](std::string_view s) { return reinterpret_cast<HANDLE>(fz::to_integral<uintpt… in main()
480 auto get_mapping = [](std::string_view s) { return fz::to_integral<int>(s, -1); }; in main()
585 uint64_t memory_size = fz::to_integral<uint64_t>(next_argument(arg)); in main()
586 uint64_t offset = fz::to_integral<uint64_t>(next_argument(arg)); in main()
623 uint64_t memory_size = fz::to_integral<uint64_t>(next_argument(arg)); in main()
624 uint64_t offset = fz::to_integral<uint64_t>(next_argument(arg)); in main()
/dports/devel/entt/entt-3.8.1/test/lib/registry_plugin/
H A Dmain.cpp38 ASSERT_EQ(position.x, static_cast<int>(entt::to_integral(entity) + 16u)); in TEST()
39 ASSERT_EQ(position.y, static_cast<int>(entt::to_integral(entity) + 16u)); in TEST()
/dports/ftp/filezilla/filezilla-3.55.1/src/interface/settings/
H A Doptionspage_connection.cpp85 auto const timeout = fz::to_integral<int>(impl_->timeout_->GetValue().ToStdWstring(), -1); in Validate()
90 auto const retries = fz::to_integral<int>(impl_->tries_->GetValue().ToStdWstring(), -1); in Validate()
95 auto const delay = fz::to_integral<int>(impl_->delay_->GetValue().ToStdWstring(), -1); in Validate()
H A Doptionspage_logging.cpp104 …m_pOptions->set(OPTION_LOGGING_FILE_SIZELIMIT, fz::to_integral<int>(impl_->limit_->GetValue().ToSt… in SavePage()
127 auto v = fz::to_integral<int>(impl_->limit_->GetValue().ToStdWstring()); in Validate()
H A Doptionspage_connection_active.cpp157 int low = fz::to_integral<int>(impl_->low_->GetValue().ToStdWstring()); in Validate()
162 long high = fz::to_integral<int>(impl_->high_->GetValue().ToStdWstring()); in Validate()
/dports/ftp/filezilla/filezilla-3.55.1/src/engine/sftp/
H A Dsftpcontrolsocket.cpp109 RecordActivity(activity_logger::recv, fz::to_integral<uint64_t>(message.text[0])); in OnSftpEvent()
112 RecordActivity(activity_logger::send, fz::to_integral<uint64_t>(message.text[0])); in OnSftpEvent()
116 auto value = fz::to_integral<int64_t>(message.text[0]); in OnSftpEvent()
145 auto port = fz::to_integral<int>(message.text[1]); in OnSftpEvent()
263 data.OnNextBufferRequested(fz::to_integral<uint64_t>(message.text[0])); in OnSftpEvent()
269 data.OnOpenRequested(fz::to_integral<uint64_t>(message.text[0])); in OnSftpEvent()
281 data.OnFinalizeRequested(fz::to_integral<uint64_t>(message.text[0])); in OnSftpEvent()
/dports/multimedia/oggvideotools/oggvideotools-0.9.1/src/main/
H A DoggBOSExtractorFactory.cpp120 for (; i< to_integral(OggType::maxOggType); ++i) { in getStreamType()
135 for (; i< to_integral(OggType::maxOggType); ++i) { in getStreamType()
/dports/ftp/filezilla/filezilla-3.55.1/src/engine/storj/
H A Dlist.cpp118 entry.size = fz::to_integral<int64_t>(size, -1); in ParseEntry()
121 time_t t = fz::to_integral<time_t>(created); in ParseEntry()
H A Dstorjcontrolsocket.cpp149 auto value = fz::to_integral<int64_t>(message.text[0]); in OnStorjEvent()
181 data.OnNextBufferRequested(fz::to_integral<uint64_t>(message.text[0])); in OnStorjEvent()
187 data.OnFinalizeRequested(fz::to_integral<uint64_t>(message.text[0])); in OnStorjEvent()
/dports/ftp/filezilla/filezilla-3.55.1/src/engine/ftp/
H A Drawtransfer.cpp310 auto port = fz::to_integral<unsigned int>(number); in ParseEpsvResponse()
348 auto number = fz::to_integral<unsigned int>(host_.substr(i + 1)); in ParsePasvResponse()
359 number = fz::to_integral<unsigned int>(host_.substr(i + 1)); in ParsePasvResponse()
/dports/ftp/filezilla/filezilla-3.55.1/src/commonui/
H A Dbuildinfo.cpp51 auto day = fz::to_integral<unsigned int>(tmp.substr(0, pos)); in GetBuildDateString()
56 auto year = fz::to_integral<unsigned int>(tmp.substr(pos + 1)); in GetBuildDateString()
/dports/ftp/filezilla/filezilla-3.55.1/src/engine/
H A Doptionsbase.cpp104 val.v_ = fz::to_integral<int>(def.def()); in set_default_value()
248 set(opt, def, val, fz::to_integral<int>(value), predefined); in set()
251 set(opt, def, val, fz::to_integral<int>(value), predefined); in set()
356 val.v_ = fz::to_integral<int>(v); in set()
365 val.v_ = fz::to_integral<int>(value); in set()
/dports/ftp/libfilezilla/libfilezilla-0.31.1/
H A DNEWS30 - Fixed warnings in fz::to_integral<bool>
79 - fz::to_integral can now handle strongly typed enum return types
158 + fz::to_integral and fz::hex_decode now work with string literals
293 + Added parameter to fz::to_integral to specify which value is returned on error.
313 + Added non-throwing fz::to_integral

12345