MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / spvOpcodeSplit

Function spvOpcodeSplit

source/opcode.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void spvOpcodeSplit(const uint32_t word, uint16_t* pWordCount,
64 uint16_t* pOpcode) {
65 if (pWordCount) {
66 *pWordCount = (uint16_t)((0xffff0000 & word) >> 16);
67 }
68 if (pOpcode) {
69 *pOpcode = 0x0000ffff & word;
70 }
71}
72
73void spvInstructionCopy(const uint32_t* words, const spv::Op opcode,
74 const uint16_t wordCount, const spv_endianness_t endian,

Callers 4

parseInstructionMethod · 0.85
spvInstructionCopyFunction · 0.85
IsTypeNullableFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68