/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/ |
H A D | int128.cc | 33 std::numeric_limits<uint64_t>::max(), std::numeric_limits<uint64_t>::max()); 96 static_assert(std::is_floating_point<T>::value, ""); in MakeUint128FromFloat() 101 assert(std::isfinite(v) && v > -1 && in MakeUint128FromFloat() 102 (std::numeric_limits<T>::max_exponent <= 128 || in MakeUint128FromFloat() 103 v < std::ldexp(static_cast<T>(1), 128))); in MakeUint128FromFloat() 105 if (v >= std::ldexp(static_cast<T>(1), 64)) { in MakeUint128FromFloat() 106 uint64_t hi = static_cast<uint64_t>(std::ldexp(v, -64)); in MakeUint128FromFloat() 107 uint64_t lo = static_cast<uint64_t>(v - std::ldexp(static_cast<T>(hi), 64)); in MakeUint128FromFloat() 120 static_assert(std in MakeUint128FromFloat() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | escaping_test.cc | 33 std::string escaped; 34 std::string unescaped; 38 const std::string inputs[] = { in TEST() 39 std::string("foo\nxx\r\b\0023"), in TEST() 40 std::string(""), in TEST() 41 std::string("abc"), in TEST() 42 std::string("\1chad_rules"), in TEST() 43 std::string("\1arnar_drools"), in TEST() 44 std::string("xxxx\r\t'\"\\"), in TEST() 45 std in TEST() [all...] |
/third_party/spirv-tools/test/opt/ |
H A D | pass_merge_return_test.cpp | 28 const std::string before = in TEST_F() 43 const std::string after = before; in TEST_F() 51 const std::string before = in TEST_F() 72 const std::string after = in TEST_F() 101 const std::string before = in TEST_F() 132 const std::string after = in TEST_F() 173 const std::string before = in TEST_F() 194 const std::string after = in TEST_F() 224 const std::string before = in TEST_F() 247 const std in TEST_F() [all...] |
H A D | strength_reduction_test.cpp | 33 const std::vector<const char*> text = { in TEST_F() 36 "%1 = OpExtInstImport \"GLSL.std.450\"", in TEST_F() 56 EXPECT_EQ(Pass::Status::SuccessWithChange, std::get<1>(result)); in TEST_F() 57 const std::string& output = std::get<0>(result); in TEST_F() 66 const std::string text = R"( in TEST_F() 68 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 105 const std::string text = R"( in TEST_F() 107 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 126 EXPECT_EQ(Pass::Status::SuccessWithChange, std in TEST_F() [all...] |
H A D | scalar_replacement_test.cpp | 41 const std::string text = R"( in TEST_F() 90 const std::string text = R"( in TEST_F() 144 const std::string text = R"( in TEST_F() 189 // const std::string text = R"( 243 // const std::string text = R"( 302 const std::string text = R"( in TEST_F() 336 const std::string text = R"( in TEST_F() 374 const std::string text = R"( in TEST_F() 416 const std::string text = R"( in TEST_F() 467 const std in TEST_F() [all...] |
/third_party/benchmark/src/ |
H A D | sysinfo.cc | 83 void PrintImp(std::ostream& out) { out << std::endl; } in PrintImp() 86 void PrintImp(std::ostream& out, First&& f, Rest&&... rest) { in PrintImp() 87 out << std::forward<First>(f); in PrintImp() 88 PrintImp(out, std::forward<Rest>(rest)...); in PrintImp() 93 PrintImp(std::cerr, std::forward<Args>(args)...); in PrintErrorAndDie() 94 std::exit(EXIT_FAILURE); in PrintErrorAndDie() 108 using DataPtr = std::unique_ptr<DataT, decltype(&std [all...] |
/third_party/gn/src/gn/ |
H A D | ohos_components_checker.cc | 27 static const std::string SCAN_RESULT_PATH = "scan_out";
28 static const std::string WHITELIST_PATH = "component_compilation_whitelist.json";
30 static std::vector<std::string> all_deps_config_;
31 static std::vector<std::string> includes_over_range_;
32 static std::map<std::string, std::vector<std [all...] |
H A D | metadata_walk_unittest.cc | 20 std::pair<std::string_view, Value>("a", a_expected)); in TEST() 25 std::pair<std::string_view, Value>("b", b_expected)); in TEST() 33 std::pair<std::string_view, Value>("a", a_2_expected)); in TEST() 38 std::pair<std::string_view, Value>("b", b_2_expected)); in TEST() 46 std::vector<std in TEST() [all...] |
/third_party/spirv-tools/test/val/ |
H A D | val_id_test.cpp | 45 std::string make_message(const char* msg); 48 std::string kOpCapabilitySetupWithoutVector16 = R"( 61 std::string kOpCapabilitySetup = R"( 75 std::string kOpVariablePtrSetUp = R"( 80 std::string kGLSL450MemoryModel = 85 std::string kGLSL450MemoryModelWithoutVector16 = 90 std::string kNoKernelGLSL450MemoryModel = R"( 101 std::string kOpenCLMemoryModel32 = R"( 105 %1 = OpExtInstImport "OpenCL.std" 109 std [all...] |
H A D | val_composites_test.cpp | 33 std::string GenerateShaderCode( in GenerateShaderCode() 34 const std::string& body, in GenerateShaderCode() 35 const std::string& capabilities_and_extensions = "", in GenerateShaderCode() 36 const std::string& execution_model = "Fragment") { in GenerateShaderCode() 37 std::ostringstream ss; in GenerateShaderCode() 111 std::string GetHeaderForTestsFromValId() { in GetHeaderForTestsFromValId() 177 const std::string body = R"( in TEST_F() 186 const std::string body = R"( in TEST_F() 197 const std::string body = R"( in TEST_F() 208 const std in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/LTO/legacy/ |
H A D | ThinLTOCodeGenerator.h | 38 std::string MCpu; 39 std::string MAttr; 44 std::unique_ptr<TargetMachine> create() const; 88 std::vector<std::unique_ptr<MemoryBuffer>> &getProducedBinaries() { in getProducedBinaries() 97 std::vector<std::string> &getProducedBinaryFiles() { in getProducedBinaryFiles() 127 std::string Path; // Path to the cache, empty to disable. 133 void setCacheDir(std::string Path) { CacheOptions.Path = std [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
H A D | strength_reduction_test.cpp | 38 const std::vector<const char*> text = { in TEST_F() 41 "%1 = OpExtInstImport \"GLSL.std.450\"", in TEST_F() 61 EXPECT_EQ(Pass::Status::SuccessWithChange, std::get<1>(result)); in TEST_F() 62 const std::string& output = std::get<0>(result); in TEST_F() 71 const std::string text = R"( in TEST_F() 73 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 110 const std::string text = R"( in TEST_F() 112 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 131 EXPECT_EQ(Pass::Status::SuccessWithChange, std in TEST_F() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/reduce/ |
H A D | reduce_test_util.cpp | 31 std::cerr << "error: line " << position.index << ": " << message 32 << std::endl; 35 std::cout << "warning: line " << position.index << ": " << message 36 << std::endl; 39 std::cout << "info: line " << position.index << ": " << message 40 << std::endl; 48 const std::vector<uint32_t>& expected_binary, in CheckEqual() 49 const std::vector<uint32_t>& actual_binary) { in CheckEqual() 52 std::string expected_disassembled; in CheckEqual() 53 std in CheckEqual() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | transformation_outline_function.h | 41 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id, 42 const std::map<uint32_t, uint32_t>& output_id_to_fresh_id); 102 std::unordered_set<uint32_t> GetFreshIds() const override; 108 static std::set<opt::BasicBlock*> GetRegionBlocks( 120 static std::vector<uint32_t> GetRegionInputIds( 121 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 130 static std::vector<uint32_t> GetRegionOutputIds( 131 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 139 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id_map, 140 const std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | transformation_outline_function.h | 41 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id, 42 const std::map<uint32_t, uint32_t>& output_id_to_fresh_id); 102 std::unordered_set<uint32_t> GetFreshIds() const override; 108 static std::set<opt::BasicBlock*> GetRegionBlocks( 120 static std::vector<uint32_t> GetRegionInputIds( 121 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 130 static std::vector<uint32_t> GetRegionOutputIds( 131 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 139 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id_map, 140 const std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
H A D | strength_reduction_test.cpp | 38 const std::vector<const char*> text = { in TEST_F() 41 "%1 = OpExtInstImport \"GLSL.std.450\"", in TEST_F() 61 EXPECT_EQ(Pass::Status::SuccessWithChange, std::get<1>(result)); in TEST_F() 62 const std::string& output = std::get<0>(result); in TEST_F() 71 const std::string text = R"( in TEST_F() 73 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 110 const std::string text = R"( in TEST_F() 112 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 131 EXPECT_EQ(Pass::Status::SuccessWithChange, std in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/reduce/ |
H A D | reduce_test_util.cpp | 31 std::cerr << "error: line " << position.index << ": " << message 32 << std::endl; 35 std::cout << "warning: line " << position.index << ": " << message 36 << std::endl; 39 std::cout << "info: line " << position.index << ": " << message 40 << std::endl; 48 const std::vector<uint32_t>& expected_binary, in CheckEqual() 49 const std::vector<uint32_t>& actual_binary) { in CheckEqual() 52 std::string expected_disassembled; in CheckEqual() 53 std in CheckEqual() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/gtest/ |
H A D | jpegtran-gtest-wrapper.cpp | 40 std::string prog_name = "jpegtran"; in TEST() 41 std::string arg1 = "-copy"; in TEST() 42 std::string arg2 = "all"; in TEST() 43 std::string arg3 = "-icc"; in TEST() 44 std::string arg4 = icc_path.MaybeAsASCII(); in TEST() 45 std::string arg5 = "-outfile"; in TEST() 46 std::string arg6 = output_path.MaybeAsASCII(); in TEST() 47 std::string arg7 = input_image_path.MaybeAsASCII(); in TEST() 57 const std::string EXPECTED_MD5 = "31d121e57b6c2934c890a7fc7763bcd4"; in TEST() 68 std in TEST() [all...] |
/third_party/spirv-tools/source/fuzz/ |
H A D | transformation_outline_function.h | 41 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id, 42 const std::map<uint32_t, uint32_t>& output_id_to_fresh_id); 102 std::unordered_set<uint32_t> GetFreshIds() const override; 108 static std::set<opt::BasicBlock*> GetRegionBlocks( 120 static std::vector<uint32_t> GetRegionInputIds( 121 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 130 static std::vector<uint32_t> GetRegionOutputIds( 131 opt::IRContext* ir_context, const std::set<opt::BasicBlock*>& region_set, 139 const std::map<uint32_t, uint32_t>& input_id_to_fresh_id_map, 140 const std [all...] |
/third_party/spirv-tools/test/reduce/ |
H A D | reduce_test_util.cpp | 31 std::cerr << "error: line " << position.index << ": " << message 32 << std::endl; 35 std::cout << "warning: line " << position.index << ": " << message 36 << std::endl; 39 std::cout << "info: line " << position.index << ": " << message 40 << std::endl; 48 const std::vector<uint32_t>& expected_binary, in CheckEqual() 49 const std::vector<uint32_t>& actual_binary) { in CheckEqual() 52 std::string expected_disassembled; in CheckEqual() 53 std in CheckEqual() [all...] |
/third_party/node/src/ |
H A D | inspector_io.cc | 29 std::string ScriptPath(uv_loop_t* loop, const std::string& script_name) { in ScriptPath() 30 std::string script_path; in ScriptPath() 37 script_path = std::string(static_cast<char*>(req.ptr)); in ScriptPath() 47 std::string GenerateID() { in GenerateID() 68 std::unique_ptr<v8_inspector::StringBuffer> message) in RequestToServer() 71 message_(std::move(message)) {} in RequestToServer() 92 std::unique_ptr<v8_inspector::StringBuffer> message_; 97 using MessageQueue = std::deque<RequestToServer>; 100 : handle_(std in RequestQueueData() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | stl_type_traits.h | 47 struct IsSpecializationImpl : std::false_type {}; 49 struct IsSpecializationImpl<T<Args...>, T> : std::true_type {}; 54 struct IsArrayImpl : std::false_type {}; 56 struct IsArrayImpl<A<T, N>> : std::is_same<A<T, N>, std::array<T, N>> {}; 61 struct IsBitsetImpl : std::false_type {}; 63 struct IsBitsetImpl<B<N>> : std::is_same<B<N>, std::bitset<N>> {}; 70 IsArray<C>, IsBitset<C>, IsSpecialization<C, std::deque>, 71 IsSpecialization<C, std [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
H A D | DrawTester.hpp | 49 void onCreateVertexBuffers(std::function<void(ThisType &tester)> callback); 54 void onCreateDescriptorSetLayouts(std::function<std::vector<vk::DescriptorSetLayoutBinding>(ThisType &tester)> callback); 58 void onCreateVertexShader(std::function<vk::ShaderModule(ThisType &tester)> callback); 62 void onCreateFragmentShader(std::function<vk::ShaderModule(ThisType &tester)> callback); 67 void onUpdateDescriptorSet(std::function<void(ThisType &tester, vk::CommandPool &commandPool, vk::DescriptorSet &descriptorSet)> callback); 78 void addVertexBuffer(VertexType *vertexBufferData, size_t vertexBufferDataSize, std::vector<vk::VertexInputAttributeDescription> inputAttributes) in addVertexBuffer() 80 addVertexBuffer(vertexBufferData, vertexBufferDataSize, sizeof(VertexType), std::move(inputAttributes)); in addVertexBuffer() 93 images.emplace_back(std::make_unique<Image>(std in addImage() [all...] |
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/ |
H A D | jsonToSpirv.h | 38 std::pair<bool, std::string> ReadFile(const std::string& path); 41 void jsonToSpirv(const std::string& jsonPath, bool buildingHeaders); 107 std::string tag; 108 std::string heading; 110 using PrintingClasses = std::vector<PrintingClass>; 113 typedef std::vector<std::string> EnumCaps; 116 typedef std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/ |
H A D | jsonToSpirv.h | 38 std::pair<bool, std::string> ReadFile(const std::string& path); 41 void jsonToSpirv(const std::string& jsonPath, bool buildingHeaders); 107 std::string tag; 108 std::string heading; 110 using PrintingClasses = std::vector<PrintingClass>; 113 typedef std::vector<std::string> EnumCaps; 116 typedef std [all...] |