MCPcopy Create free account
hub / github.com/akyoto/q / Set

Method Set

src/codegen/bitset.go:9–11  ·  view source on GitHub ↗

Set marks the given register as used.

(reg cpu.Register)

Source from the content-addressed store, hash-verified

7
8// Set marks the given register as used.
9func (b *bitSet) Set(reg cpu.Register) {
10 *b |= 1 << (reg & 63)
11}
12
13// Has returns true if the given register is used.
14func (b *bitSet) Has(reg cpu.Register) bool {

Callers 4

findFreeRegisterMethod · 0.80
reorderParametersMethod · 0.80
storeSpillNumberMethod · 0.80
reorderMovesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected