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

Method Rotate

avida-core/source/cpu/cCodeLabel.h:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84inline void cCodeLabel::Rotate(const int rot, const int base)
85{
86 for (int i = 0; i < m_nops.GetSize(); i++) {
87 m_nops[i] += rot;
88 if (m_nops[i] >= base) m_nops[i] -= base;
89 }
90}
91
92
93inline cString cCodeLabel::AsString() const

Callers 15

SingleProcessMethod · 0.45
Inst_Search_Seq_DMethod · 0.45
Inst_RotateHomeMethod · 0.45
Inst_RotateOrgIDMethod · 0.45
Inst_RotateAwayOrgIDMethod · 0.45
Inst_JumpFMethod · 0.45
Inst_JumpBMethod · 0.45
Inst_CallMethod · 0.45
Inst_DonateRandomMethod · 0.45
Inst_DonateKinMethod · 0.45
Inst_DonateEditDistMethod · 0.45

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected