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

Method getrl

app/src/main/java/cs/threephase/Center2.java:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108
109 int getrl() {
110 int idx = 0;
111 int r = 4;
112 for (int i = 6; i >= 0; i--) {
113 if (rl[i] != rl[7]) {
114 idx += Cnk[i][r--];
115 }
116 }
117 return idx * 2 + parity;
118 }
119
120 private void setrl(int idx) {
121 parity = idx & 1;

Callers 3

initRlMethod · 0.95
searchMethod · 0.80
init2Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected