MCPcopy Create free account
hub / github.com/devosoft/avida / GetLibFunctionIndex

Method GetLibFunctionIndex

avida-core/source/cpu/cInstSet.h:128–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 double GetBonusCost(const Instruction& inst) const { return m_lib_name_map[inst.GetOp()].bonus_cost; }
127
128 int GetLibFunctionIndex(const Instruction& inst) const { return m_lib_name_map[inst.GetOp()].lib_fun_id; }
129
130 int GetNopMod(const Instruction& inst) const
131 {

Callers 11

SingleProcessMethod · 0.80
FindModifiedRegisterMethod · 0.80
SingleProcessMethod · 0.80
InstructionColorChartMethod · 0.80

Calls 1

GetOpMethod · 0.80

Tested by

no test coverage detected