MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / setrl

Method setrl

app/src/main/java/cs/threephase/Center2.java:120–133  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

118 }
119
120 private void setrl(int idx) {
121 parity = idx & 1;
122 idx >>>= 1;
123 int r = 4;
124 rl[7] = 0;
125 for (int i = 6; i >= 0; i--) {
126 if (idx >= Cnk[i][r]) {
127 idx -= Cnk[i][r--];
128 rl[i] = 1;
129 } else {
130 rl[i] = 0;
131 }
132 }
133 }
134
135 int getct() {
136 int idx = 0;

Callers 1

initRlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected