| /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/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/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/json/docs/mkdocs/docs/features/ |
| D | binary_values.md | 3 The library implements several [binary formats](binary_formats/index.md) that encode JSON in an eff… 4 these formats support binary values; that is, values that have semantics define outside the library… 7 JSON itself does not have a binary value. As such, binary values are an extension that this library… 8 values received by a binary format. Binary values are never created by the JSON parser, and are onl… 9 serialized JSON text if they have been created manually or via a binary format. 11 ## API for binary values 26 By default, binary values are stored as `std::vector<std::uint8_t>`. This type can be changed by pr… 27 parameter to the `basic_json` type. To store binary subtypes, the storage type is extended and expo… 31 auto binary = json::binary_t({0xCA, 0xFE, 0xBA, 0xBE}); 38 binary.has_subtype(); // returns false [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/json/docs/mkdocs/docs/api/basic_json/ |
| D | binary.md | 1 # <small>nlohmann::basic_json::</small>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/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| D | vkPrograms.cpp | 60 ProgramBinary::ProgramBinary (ProgramFormat format, size_t binarySize, const deUint8* binary) in ProgramBinary() argument 62 , m_binary (binary, binary+binarySize) in ProgramBinary() 81 bool isSaneSpirVBinary (const ProgramBinary& binary) in isSaneSpirVBinary() argument 88 DE_ASSERT(binary.getFormat() == PROGRAM_FORMAT_SPIRV); in isSaneSpirVBinary() 90 if (binary.getSize() % sizeof(deUint32) != 0) in isSaneSpirVBinary() 93 if (binary.getSize() < sizeof(deUint32)) in isSaneSpirVBinary() 96 if (*(const deUint32*)binary.getBinary() != spirvMagicBytes) in isSaneSpirVBinary() 102 void optimizeCompiledBinary (vector<deUint32>& binary, int optimizationRecipe, const SpirvVersion s… in optimizeCompiledBinary() argument 135 const bool ok = optimizer.Run(binary.data(), binary.size(), &binary, optimizer_options); in optimizeCompiledBinary() 141 ProgramBinary* createProgramBinaryFromSpirV (const vector<deUint32>& binary) in createProgramBinaryFromSpirV() argument [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/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/astc-encoder/Test/ |
| D | astc_test_functional.py | 126 self.binary = encoder.binary 464 command = [self.binary, "-cl", imIn, imOut, "6x6", "-exhaustive"] 476 command = [self.binary, "-cs", imIn, imOut, "6x6", "-exhaustive"] 488 command = [self.binary, "-ch", imIn, imOut, "6x6", "-exhaustive"] 500 command = [self.binary, "-cH", imIn, imOut, "6x6", "-exhaustive"] 512 command = [self.binary, "-dl", imIn, imOut] 524 command = [self.binary, "-ds", imIn, imOut] 536 command = [self.binary, "-dh", imIn, imOut] 551 command = [self.binary, "-dH", imIn, imOut] 565 command = [self.binary, "-tl", imIn, imOut, "6x6", "-exhaustive"] [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 …]
|
| /third_party/spirv-tools/test/link/ |
| D | ids_limit_test.cpp | 58 spvtest::Binary& binary = binaries.back(); in SetUp() local 59 binary.reserve(common_binary.size() + constant_count * 3u); in SetUp() 60 binary.insert(binary.end(), common_binary.cbegin(), common_binary.cend()); in SetUp() 63 binary.push_back(SpvOpConstantTrue | 3u << SpvWordCountShift); in SetUp() 64 binary.push_back(1u); // NOTE: Type ID in SetUp() 65 binary.push_back(2u + i); // NOTE: Result ID in SetUp() 103 spvtest::Binary& binary = binaries.back(); in TEST_F() local 105 const uint32_t id_bound = binary[3]; in TEST_F() 106 binary[3] = id_bound + 1u; in TEST_F() 108 binary.push_back(SpvOpConstantFalse | 3u << SpvWordCountShift); in TEST_F() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/ |
| D | libspirv.cpp | 74 std::vector<uint32_t>* binary, in Assemble() argument 76 return Assemble(text.data(), text.size(), binary, options); in Assemble() 80 std::vector<uint32_t>* binary, in Assemble() argument 86 binary->assign(spvbinary->code, spvbinary->code + spvbinary->wordCount); in Assemble() 92 bool SpirvTools::Disassemble(const std::vector<uint32_t>& binary, in Disassemble() argument 94 return Disassemble(binary.data(), binary.size(), text, options); in Disassemble() 97 bool SpirvTools::Disassemble(const uint32_t* binary, const size_t binary_size, in Disassemble() argument 100 spv_result_t status = spvBinaryToText(impl_->context, binary, binary_size, in Disassemble() 109 bool SpirvTools::Validate(const std::vector<uint32_t>& binary) const { in Validate() 110 return Validate(binary.data(), binary.size()); in Validate() [all …]
|
| /third_party/spirv-tools/source/ |
| D | libspirv.cpp | 74 std::vector<uint32_t>* binary, in Assemble() argument 76 return Assemble(text.data(), text.size(), binary, options); in Assemble() 80 std::vector<uint32_t>* binary, in Assemble() argument 86 binary->assign(spvbinary->code, spvbinary->code + spvbinary->wordCount); in Assemble() 92 bool SpirvTools::Disassemble(const std::vector<uint32_t>& binary, in Disassemble() argument 94 return Disassemble(binary.data(), binary.size(), text, options); in Disassemble() 97 bool SpirvTools::Disassemble(const uint32_t* binary, const size_t binary_size, in Disassemble() argument 100 spv_result_t status = spvBinaryToText(impl_->context, binary, binary_size, in Disassemble() 111 bool SpirvTools::Validate(const std::vector<uint32_t>& binary) const { in Validate() 112 return Validate(binary.data(), binary.size()); in Validate() [all …]
|