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

Function ExtractInts

source/opt/folding_rules.cpp:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131std::vector<uint32_t> ExtractInts(uint64_t val) {
132 std::vector<uint32_t> words;
133 words.push_back(static_cast<uint32_t>(val));
134 words.push_back(static_cast<uint32_t>(val >> 32));
135 return words;
136}
137
138std::vector<uint32_t> GetWordsFromScalarIntConstant(
139 const analysis::IntConstant* c) {

Callers 2

NegateIntegerConstantFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected