/third_party/benchmark/test/ |
D | string_util_gtest.cc | 70 TEST(StringUtilTest, stoi){{size_t pos = 0; in TEST() argument 71 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST() 76 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST() 81 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST() 86 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST() 91 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST() 96 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST() 101 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST() 106 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST() 110 { ASSERT_THROW(benchmark::stoi("this is a test"), std::invalid_argument); } in TEST()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/perf/ |
D | cache_pipeline_run.cc | 35 my_pipeline_ = std::stoi(s); in ProcessPipelineArgs() 40 crc_ = std::stoi(s); in ProcessPipelineArgs() 42 recv_id_ = std::stoi(s); in ProcessPipelineArgs() 44 send_id_ = std::stoi(s); in ProcessPipelineArgs() 46 num_pipelines_ = std::stoi(s); in ProcessPipelineArgs() 48 num_epoches_ = std::stoi(s); in ProcessPipelineArgs() 52 row_size_ = std::stoi(s); in ProcessPipelineArgs() 80 cache_builder_.SetPort(std::stoi(s)); in ProcessClientArgs() 82 cache_builder_.SetPrefetchSize(std::stoi(s)); in ProcessClientArgs() 84 cache_builder_.SetCacheMemSz(std::stoi(s)); in ProcessClientArgs() [all …]
|
D | cache_perf_run.cc | 74 num_pipelines_ = std::stoi(optarg); in ProcessArgsHelper() 79 num_epoches_ = std::stoi(optarg); in ProcessArgsHelper() 84 int32_t prefetch_sz = std::stoi(optarg); in ProcessArgsHelper() 90 int32_t cache_sz = std::stoi(optarg); in ProcessArgsHelper() 96 num_rows_ = std::stoi(optarg); in ProcessArgsHelper() 101 row_size_ = std::stoi(optarg); in ProcessArgsHelper() 106 cfg_.set_num_parallel_workers(std::stoi(optarg)); in ProcessArgsHelper() 111 int32_t connection_sz = std::stoi(optarg); in ProcessArgsHelper() 117 int32_t port = std::stoi(optarg); in ProcessArgsHelper()
|
/third_party/mindspore/mindspore/lite/src/delegate/npu/ |
D | npu_manager.cc | 35 if (stoi(string1) > stoi(string2)) return 1; in CompareVersion() 36 if (stoi(string1) < stoi(string2)) return -1; in CompareVersion()
|
/third_party/e2fsprogs/contrib/android/ |
D | dac_config.cpp | 185 uid = stoi(values[DAC_UID_IDX]); in LoadDacConfig() 190 uid = stoi(values[DAC_GID_IDX]); in LoadDacConfig() 194 …DacConfig dacConfig(stoi(values[DAC_MODE_IDX], 0, 8), uid, gid, cap, values[DAC_PATH_IDX]); // 8 o… in LoadDacConfig()
|
/third_party/benchmark/src/ |
D | string_util.h | 54 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10); 58 using std::stoi; // NOLINT(misc-unused-using-decls)
|
/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | kernel_build_client.cc | 128 return std::stoi(res); in TbeStart() 154 *task_id = std::stoi(SendRequest(kContinue)); in TbeWait()
|
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/ |
D | SystemInfo_android.cpp | 50 info->androidSdkLevel = std::stoi(androidSdkLevel); in GetSystemInfo()
|
/third_party/skia/third_party/externals/tint/src/ |
D | demangler.cc | 53 Symbol sym(std::stoi(id), symbols.ProgramID()); in Demangle()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/ |
D | graph_info.cc | 68 *loop_index = IntToSize(std::stoi(result[1])); in GetLoopIndexFromCNode()
|
/third_party/boost/boost/utility/ |
D | string_ref.hpp | 439 inline int stoi (string_ref str, size_t* idx=0, int base=10) { 440 return std::stoi ( std::string(str), idx, base ); 471 inline int stoi (wstring_ref str, size_t* idx=0, int base=10) { 472 return std::stoi ( std::wstring(str), idx, base );
|
D | string_view.hpp | 590 inline int stoi (string_view str, size_t* idx=0, int base=10) { 591 return std::stoi ( std::string(str), idx, base ); 622 inline int stoi (wstring_view str, size_t* idx=0, int base=10) { 623 return std::stoi ( std::wstring(str), idx, base );
|
/third_party/nghttp2/examples/ |
D | asio-sv2.cc | 65 std::size_t num_threads = std::stoi(argv[3]); in main()
|
D | asio-sv.cc | 59 std::size_t num_threads = std::stoi(argv[3]); in main()
|
/third_party/skia/include/private/ |
D | SkSLString.h | 68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/ |
D | celeba_op.cc | 154 type = std::stoi(vec[1]); in CheckDatasetTypeValid() 199 value = std::stoi(split[label_index]); in ParseImageAttrInfo()
|
D | album_op.cc | 57 int64_t value_a = std::stoi(a.substr(1, a.find(".")).c_str()); in StrComp() 58 int64_t value_b = std::stoi(b.substr(1, b.find(".")).c_str()); in StrComp() 260 int64_t image_id = std::stoi(file.substr(1, file.find(".")).c_str()); in LoadIDTensor()
|
D | usps_op.cc | 247 *label = static_cast<uint32_t>(std::stoi(item)) - 1; in ParseLine() 253 CHECK_FAIL_RETURN_UNEXPECTED(std::stoi(item.substr(0, split_pos)) == (split_num - 1), in ParseLine()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | LLVMAsm.cpp | 131 auto alignPow2 = std::stoi(matches[1]); in fixupAsmFile()
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLString.h | 115 SKSL_INT stoi(const String& s);
|
/third_party/mindspore/mindspore/lite/tools/converter/ |
D | converter_flags.cc | 197 dim_value = std::stoi(dim); in InitInTensorShape() 420 compute_rate = std::stoi(rate.back()); in CheckOfflineParallelConfig()
|
/third_party/skia/src/sksl/ |
D | SkSLString.cpp | 156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi() function
|
/third_party/boost/libs/process/test/ |
D | posix_specific.cpp | 118 fds.push_back(std::stoi(fd.path().filename().string())); in __anondf27bc370102()
|
/third_party/mindspore/mindspore/lite/src/ |
D | huffman_decode.cc | 77 auto key = stoi(huffman_keys[i]); in RebuildHuffmanTree()
|
/third_party/skia/tools/ |
D | MSKPPlayer.cpp | 301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str()); in onDrawAnnotation() 315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str()); in onDrawAnnotation()
|