/third_party/spirv-tools/test/ |
D | c_interface_test.cpp | 39 spv_binary binary = nullptr; in TEST() local 41 sizeof(input_text), &binary, nullptr)); in TEST() 46 spv_const_binary_t b{binary->code, binary->wordCount}; in TEST() 51 EXPECT_EQ(SPV_SUCCESS, spvBinaryToText(context, binary->code, in TEST() 52 binary->wordCount, 0, &text, nullptr)); in TEST() 55 spvBinaryDestroy(binary); in TEST() 64 spv_binary binary = nullptr; in TEST() local 66 spvTextToBinary(context, input_text, sizeof(input_text), &binary, in TEST() 68 spvBinaryDestroy(binary); in TEST() 77 spv_binary binary = nullptr; in TEST() local [all …]
|
D | cpp_interface_test.cpp | 47 std::vector<uint32_t> binary; in TEST() local 48 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST() 49 EXPECT_TRUE(binary.size() > 5u); in TEST() 50 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST() 51 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST() 64 EXPECT_FALSE(t.Validate(binary)); in TEST() 67 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST() 72 std::vector<uint32_t> binary(10, 42); in TEST() local 74 EXPECT_TRUE(t.Assemble("", &binary)); in TEST() 76 EXPECT_EQ(5u, binary.size()); in TEST() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
D | c_interface_test.cpp | 39 spv_binary binary = nullptr; in TEST() local 41 sizeof(input_text), &binary, nullptr)); in TEST() 46 spv_const_binary_t b{binary->code, binary->wordCount}; in TEST() 51 EXPECT_EQ(SPV_SUCCESS, spvBinaryToText(context, binary->code, in TEST() 52 binary->wordCount, 0, &text, nullptr)); in TEST() 55 spvBinaryDestroy(binary); in TEST() 64 spv_binary binary = nullptr; in TEST() local 66 spvTextToBinary(context, input_text, sizeof(input_text), &binary, in TEST() 68 spvBinaryDestroy(binary); in TEST() 77 spv_binary binary = nullptr; in TEST() local [all …]
|
D | cpp_interface_test.cpp | 47 std::vector<uint32_t> binary; in TEST() local 48 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST() 49 EXPECT_TRUE(binary.size() > 5u); in TEST() 50 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST() 51 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST() 64 EXPECT_FALSE(t.Validate(binary)); in TEST() 67 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST() 72 std::vector<uint32_t> binary(10, 42); in TEST() local 74 EXPECT_TRUE(t.Assemble("", &binary)); in TEST() 76 EXPECT_EQ(5u, binary.size()); in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
D | c_interface_test.cpp | 39 spv_binary binary = nullptr; in TEST() local 41 sizeof(input_text), &binary, nullptr)); in TEST() 46 spv_const_binary_t b{binary->code, binary->wordCount}; in TEST() 51 EXPECT_EQ(SPV_SUCCESS, spvBinaryToText(context, binary->code, in TEST() 52 binary->wordCount, 0, &text, nullptr)); in TEST() 55 spvBinaryDestroy(binary); in TEST() 64 spv_binary binary = nullptr; in TEST() local 66 spvTextToBinary(context, input_text, sizeof(input_text), &binary, in TEST() 68 spvBinaryDestroy(binary); in TEST() 77 spv_binary binary = nullptr; in TEST() local [all …]
|
D | cpp_interface_test.cpp | 47 std::vector<uint32_t> binary; in TEST() local 48 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST() 49 EXPECT_TRUE(binary.size() > 5u); in TEST() 50 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST() 51 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST() 64 EXPECT_FALSE(t.Validate(binary)); in TEST() 67 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST() 72 std::vector<uint32_t> binary(10, 42); in TEST() local 74 EXPECT_TRUE(t.Assemble("", &binary)); in TEST() 76 EXPECT_EQ(5u, binary.size()); in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | c_interface_test.cpp | 33 spv_binary binary = nullptr; in TEST() local 35 sizeof(input_text), &binary, nullptr)); in TEST() 40 spv_const_binary_t b{binary->code, binary->wordCount}; in TEST() 45 EXPECT_EQ(SPV_SUCCESS, spvBinaryToText(context, binary->code, in TEST() 46 binary->wordCount, 0, &text, nullptr)); in TEST() 49 spvBinaryDestroy(binary); in TEST() 58 spv_binary binary = nullptr; in TEST() local 60 spvTextToBinary(context, input_text, sizeof(input_text), &binary, in TEST() 62 spvBinaryDestroy(binary); in TEST() 71 spv_binary binary = nullptr; in TEST() local [all …]
|
D | cpp_interface_test.cpp | 31 std::vector<uint32_t> binary; in TEST() local 32 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST() 33 EXPECT_TRUE(binary.size() > 5u); in TEST() 34 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST() 35 EXPECT_EQ(SpvVersion, binary[1]); in TEST() 47 EXPECT_FALSE(t.Validate(binary)); in TEST() 50 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST() 55 std::vector<uint32_t> binary(10, 42); in TEST() local 57 EXPECT_TRUE(t.Assemble("", &binary)); in TEST() 59 EXPECT_EQ(5u, binary.size()); in TEST() [all …]
|
/third_party/mesa3d/src/amd/common/ |
D | ac_rtld.c | 176 static bool read_private_lds_symbols(struct ac_rtld_binary *binary, unsigned part_idx, in read_private_lds_symbols() argument 194 struct ac_rtld_part *part = &binary->parts[part_idx]; in read_private_lds_symbols() 227 const struct ac_rtld_symbol *shared = find_symbol(&binary->lds_symbols, s.name, part_idx); in read_private_lds_symbols() 234 util_dynarray_append(&binary->lds_symbols, struct ac_rtld_symbol, s); in read_private_lds_symbols() 249 bool ac_rtld_open(struct ac_rtld_binary *binary, struct ac_rtld_open_info i) in ac_rtld_open() argument 257 memset(binary, 0, sizeof(*binary)); in ac_rtld_open() 258 memcpy(&binary->options, &i.options, sizeof(binary->options)); in ac_rtld_open() 259 binary->wave_size = i.wave_size; in ac_rtld_open() 260 binary->gfx_level = i.info->gfx_level; in ac_rtld_open() 261 binary->num_parts = i.num_parts; in ac_rtld_open() [all …]
|
/third_party/json/doc/mkdocs/docs/features/ |
D | binary_values.md | 3 …mplements several [binary formats](binary_formats/index.md) that encode JSON in an efficient way. … 5 …binary value. As such, binary values are an extension that this library implements to store values… 7 ## API for binary values 22 …binary values are stored as `std::vector<std::uint8_t>`. This type can be changed by providing a t… 25 auto binary = json::binary_t({0xCA, 0xFE, 0xBA, 0xBE}); 32 binary.has_subtype(); // returns false 39 binary.set_subtype(23); 41 binary.subtype(); // returns 23 47 binary.size(); // returns 4 48 binary[1]; // returns 0xFE [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/opt/ |
D | optimizer_test.cpp | 62 std::vector<uint32_t> binary; in TEST() local 63 tools.Assemble("OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 67 opt.Run(binary.data(), binary.size(), &binary); // This is the key. in TEST() 70 tools.Disassemble(binary.data(), binary.size(), &disassembly); in TEST() 76 std::vector<uint32_t> binary; in TEST() local 77 tools.Assemble("OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 81 auto orig_size = binary.size(); in TEST() 84 binary.push_back(42); in TEST() 85 EXPECT_THAT(orig_size + 1, Eq(binary.size())); in TEST() 86 opt.Run(binary.data(), orig_size, &binary); // This is the key. in TEST() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | optimizer_test.cpp | 73 std::vector<uint32_t> binary; in TEST() local 74 tools.Assemble("OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 78 opt.Run(binary.data(), binary.size(), &binary); // This is the key. in TEST() 81 tools.Disassemble(binary.data(), binary.size(), &disassembly); in TEST() 87 std::vector<uint32_t> binary; in TEST() local 88 tools.Assemble(Header() + "OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 92 auto orig_size = binary.size(); in TEST() 95 binary.push_back(42); in TEST() 96 EXPECT_THAT(orig_size + 1, Eq(binary.size())); in TEST() 97 opt.Run(binary.data(), orig_size, &binary); // This is the key. in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | optimizer_test.cpp | 73 std::vector<uint32_t> binary; in TEST() local 74 tools.Assemble("OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 78 opt.Run(binary.data(), binary.size(), &binary); // This is the key. in TEST() 81 tools.Disassemble(binary.data(), binary.size(), &disassembly); in TEST() 87 std::vector<uint32_t> binary; in TEST() local 88 tools.Assemble(Header() + "OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 92 auto orig_size = binary.size(); in TEST() 95 binary.push_back(42); in TEST() 96 EXPECT_THAT(orig_size + 1, Eq(binary.size())); in TEST() 97 opt.Run(binary.data(), orig_size, &binary); // This is the key. in TEST() [all …]
|
/third_party/spirv-tools/test/opt/ |
D | optimizer_test.cpp | 73 std::vector<uint32_t> binary; in TEST() local 74 tools.Assemble("OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 78 opt.Run(binary.data(), binary.size(), &binary); // This is the key. in TEST() 81 tools.Disassemble(binary.data(), binary.size(), &disassembly); in TEST() 87 std::vector<uint32_t> binary; in TEST() local 88 tools.Assemble(Header() + "OpName %foo \"foo\"\n%foo = OpTypeVoid", &binary); in TEST() 92 auto orig_size = binary.size(); in TEST() 95 binary.push_back(42); in TEST() 96 EXPECT_THAT(orig_size + 1, Eq(binary.size())); in TEST() 97 opt.Run(binary.data(), orig_size, &binary); // This is the key. in TEST() [all …]
|
D | compact_ids_test.cpp | 152 std::vector<uint32_t> binary; in TEST() local 156 input, &binary, SPV_TEXT_TO_BINARY_OPTION_PRESERVE_NUMERIC_IDS); in TEST() 165 optimizer.Run(binary.data(), binary.size(), &binary); in TEST() 168 tools.Disassemble(binary, &disassembly, SPV_BINARY_TO_TEXT_OPTION_NO_HEADER); in TEST() 196 std::vector<uint32_t> binary; in TEST() local 200 input, &binary, SPV_TEXT_TO_BINARY_OPTION_PRESERVE_NUMERIC_IDS); in TEST() 209 optimizer.Run(binary.data(), binary.size(), &binary); in TEST() 212 tools.Disassemble(binary, &disassembly, SPV_BINARY_TO_TEXT_OPTION_NONE); in TEST() 277 std::vector<uint32_t> binary; in TEST() local 278 context->module()->ToBinary(&binary, false); in TEST() [all …]
|
/third_party/mesa3d/src/gallium/frontends/clover/llvm/codegen/ |
D | common.cpp | 46 using clover::binary; 58 enum binary::argument::type 63 return binary::argument::image_rd; in get_image_type() 65 return binary::argument::image_wr; in get_image_type() 71 binary::arg_info create_arg_info(const std::string &arg_name, in create_arg_info() 104 return binary::arg_info(arg_name, type_name, cl_type_qualifier, in create_arg_info() 151 std::vector<binary::argument> 154 std::vector<binary::argument> args; in make_kernel_args() 180 target_align, binary::argument::zero_ext); in make_kernel_args() 183 args.emplace_back(binary::argument::sampler, arg_api_size, in make_kernel_args() [all …]
|
/third_party/libabigail/tests/ |
D | test-symtab.cc | 67 const std::string binary = "basic/empty.so"; variable 69 const fe_iface::status status = read_corpus(binary, corpus_ptr); 77 const std::string binary = "basic/no_debug_info.so"; variable 79 const fe_iface::status status = read_corpus(binary, corpus_ptr); 157 const std::string binary = "basic/single_function.so"; variable 158 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 0); 169 const std::string binary = "basic/single_variable.so"; variable 170 const corpus_sptr& corpus = assert_symbol_count(binary, 0, 1); 181 const std::string binary = "basic/one_function_one_variable.so"; variable 182 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 1); [all …]
|
/third_party/python/ |
D | .gitattributes | 2 *.aif binary 3 *.aifc binary 4 *.aiff binary 5 *.au binary 6 *.bmp binary 7 *.exe binary 8 *.icns binary 9 *.gif binary 10 *.ico binary 11 *.jpg binary [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/ |
D | shader_compiler_test.cc | 109 std::vector<uint32_t> binary; in TEST_F() local 112 std::tie(r, binary) = sc.Compile(&pipeline, &shader_info, ShaderMap()); in TEST_F() 114 EXPECT_FALSE(binary.empty()); in TEST_F() 115 EXPECT_EQ(0x07230203u, binary[0]); // Verify SPIR-V header present. in TEST_F() 128 std::vector<uint32_t> binary; in TEST_F() local 131 std::tie(r, binary) = sc.Compile(&pipeline, &shader_info, ShaderMap()); in TEST_F() 133 EXPECT_FALSE(binary.empty()); in TEST_F() 134 EXPECT_EQ(0x07230203u, binary[0]); // Verify SPIR-V header present. in TEST_F() 148 std::vector<uint32_t> binary; in TEST_F() local 151 std::tie(r, binary) = sc.Compile(&pipeline, &shader_info, ShaderMap()); in TEST_F() [all …]
|
/third_party/mesa3d/src/gallium/frontends/clover/spirv/ |
D | invocation.cpp | 65 enum binary::argument::type 69 return binary::argument::scalar; in convert_storage_class() 71 return binary::argument::global; in convert_storage_class() 73 return binary::argument::local; in convert_storage_class() 75 return binary::argument::global; in convert_storage_class() 97 enum binary::argument::type 107 return binary::argument::image_rd; in convert_image_type() 109 return binary::argument::image_wr; in convert_image_type() 122 binary::section 124 enum binary::section::type section_type) { in make_text_section() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/ |
D | libspirv.cpp | 42 std::vector<uint32_t>* binary, in Assemble() argument 44 return Assemble(text.data(), text.size(), binary, options); in Assemble() 48 std::vector<uint32_t>* binary, in Assemble() argument 54 binary->assign(spvbinary->code, spvbinary->code + spvbinary->wordCount); in Assemble() 60 bool SpirvTools::Disassemble(const std::vector<uint32_t>& binary, in Disassemble() argument 62 return Disassemble(binary.data(), binary.size(), text, options); in Disassemble() 65 bool SpirvTools::Disassemble(const uint32_t* binary, const size_t binary_size, in Disassemble() argument 68 spv_result_t status = spvBinaryToText(impl_->context, binary, binary_size, in Disassemble() 77 bool SpirvTools::Validate(const std::vector<uint32_t>& binary) const { in Validate() 78 return Validate(binary.data(), binary.size()); in Validate() [all …]
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_print_asm.cpp | 69 print_instr(FILE* output, const std::vector<uint32_t>& binary, char* instr, unsigned size, in print_instr() argument 75 fprintf(output, " %.8x", binary[pos + i]); in print_instr() 175 print_asm_clrx(Program* program, std::vector<uint32_t>& binary, unsigned exec_size, FILE* output) in print_asm_clrx() argument 193 if (write(fd, &binary[i], 4) == -1) in print_asm_clrx() 235 print_instr(output, binary, prev_instr, pos - prev_pos, prev_pos); in print_asm_clrx() 253 print_instr(output, binary, prev_instr, exec_size - prev_pos, prev_pos); in print_asm_clrx() 271 disasm_instr(amd_gfx_level gfx_level, LLVMDisasmContextRef disasm, uint32_t* binary, in disasm_instr() argument 275 LLVMDisasmInstruction(disasm, (uint8_t*)&binary[pos], (exec_size - pos) * sizeof(uint32_t), in disasm_instr() 278 if (gfx_level >= GFX10 && l == 8 && ((binary[pos] & 0xffff0000) == 0xd7610000) && in disasm_instr() 279 ((binary[pos + 1] & 0x1ff) == 0xff)) { in disasm_instr() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkPrograms.cpp | 64 ProgramBinary::ProgramBinary (ProgramFormat format, size_t binarySize, const deUint8* binary) in ProgramBinary() argument 66 , m_binary (binary, binary+binarySize) in ProgramBinary() 85 bool isSaneSpirVBinary (const ProgramBinary& binary) in isSaneSpirVBinary() argument 92 DE_ASSERT(binary.getFormat() == PROGRAM_FORMAT_SPIRV); in isSaneSpirVBinary() 94 if (binary.getSize() % sizeof(deUint32) != 0) in isSaneSpirVBinary() 97 if (binary.getSize() < sizeof(deUint32)) in isSaneSpirVBinary() 100 if (*(const deUint32*)binary.getBinary() != spirvMagicBytes) in isSaneSpirVBinary() 106 void optimizeCompiledBinary (vector<deUint32>& binary, int optimizationRecipe, const SpirvVersion s… in optimizeCompiledBinary() argument 140 const bool ok = optimizer.Run(binary.data(), binary.size(), &binary, optimizer_options); in optimizeCompiledBinary() 146 ProgramBinary* createProgramBinaryFromSpirV (const vector<deUint32>& binary) in createProgramBinaryFromSpirV() argument [all …]
|
/third_party/json/doc/mkdocs/docs/api/basic_json/ |
D | binary.md | 1 # basic_json::binary 5 static basic_json binary(const typename binary_t::container_type& init); 6 static basic_json binary(typename binary_t::container_type&& init); 9 static basic_json binary(const typename binary_t::container_type& init, 11 static basic_json binary(typename binary_t::container_type&& init, 15 1. Creates a JSON binary array value from a given binary container. 16 2. Creates a JSON binary array value from a given binary container with subtype. 18 Binary values are part of various binary formats, such as CBOR, MessagePack, and BSON. This constru… 24 : container containing bytes to use as binary type 31 JSON binary array value [all …]
|
/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_sync_binary.c | 41 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_init() local 44 container_of(binary->sync.type, struct vk_sync_binary_type, sync); in vk_sync_binary_init() 49 binary->next_point = (initial_value == 0); in vk_sync_binary_init() 51 return vk_sync_init(device, &binary->timeline, btype->timeline_type, in vk_sync_binary_init() 59 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_finish() local 61 vk_sync_finish(device, &binary->timeline); in vk_sync_binary_finish() 68 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_reset() local 70 binary->next_point++; in vk_sync_binary_reset() 80 struct vk_sync_binary *binary = to_vk_sync_binary(sync); in vk_sync_binary_signal() local 84 return vk_sync_signal(device, &binary->timeline, binary->next_point); in vk_sync_binary_signal() [all …]
|