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

Method get

app/src/main/java/cs/threephase/Edge3.java:319–348  ·  view source on GitHub ↗
(int end)

Source from the content-addressed store, hash-verified

317 }
318
319 int get(int end) {
320 if (!isStd) {
321 std();
322 }
323 int idx = 0;
324
325 long val = 0xba9876543210L;
326 for (int i=0; i<end; i++) {
327 int v = edge[i] << 2;
328 idx *= 12 - i;
329 idx += (val >> v) & 0xf;
330 val -= 0x111111111110L << v;
331 }
332
333// int vall = 0x76543210;
334// int valh = 0xba98;
335// for (int i=0; i<end; i++) {
336// int v = edge[i] << 2;
337// idx *= 12 - i;
338// if (v >= 32) {
339// idx += (valh >> (v - 32)) & 0xf;
340// valh -= 0x1110 << (v - 32);
341// } else {
342// idx += (vall >> v) & 0xf;
343// valh -= 0x1111;
344// vall -= 0x11111110 << v;
345// }
346// }
347 return idx;
348 }
349
350 void set(int idx) {
351 long val = 0xba9876543210L;

Callers 15

initRaw2SymMethod · 0.95
createPrunMethod · 0.95
getsymMethod · 0.95
saveSessionMethod · 0.45
getSessionNameMethod · 0.45
setSessionNameMethod · 0.45
getPuzzleMethod · 0.45
setPuzzleMethod · 0.45
getMultiPhaseMethod · 0.45
setMultiPhaseMethod · 0.45
getAverageMethod · 0.45
setAverageMethod · 0.45

Calls 1

stdMethod · 0.95

Tested by

no test coverage detected