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

Method setct

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

Source from the content-addressed store, hash-verified

144 }
145
146 private void setct(int idx) {
147 int r = 8;
148 ct[15] = 0;
149 for (int i = 14; i >= 0; i--) {
150 if (idx >= Cnk[i][r]) {
151 idx -= Cnk[i][r--];
152 ct[i] = 1;
153 } else {
154 ct[i] = 0;
155 }
156 }
157 }
158
159 private void rot(int r) {
160 switch (r) {

Callers 1

initCtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected