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

Method get8Perm

app/src/main/java/solver/Utils.java:53–62  ·  view source on GitHub ↗
(int[] arr, int len)

Source from the content-addressed store, hash-verified

51 }
52
53 public static int get8Perm(int[] arr, int len) {
54 int idx = 0;
55 int val = 0x76543210;
56 for (int i = 0; i < len - 1; i++) {
57 int v = arr[i] << 2;
58 idx = (len - i) * idx + ((val >> v) & 0x7);
59 val -= 0x11111110 << v;
60 }
61 return idx;
62 }
63
64 static void set11Perm(int[] arr, int idx, int len) {
65 long val = 0xa9876543210L;

Callers 14

initMethod · 0.95
getprmmvMethod · 0.95
scrambleEGMethod · 0.95
scramblePBLMethod · 0.95
scrambleTCLLMethod · 0.95
scrambleTEG1Method · 0.95
scrambleTEG2Method · 0.95
initMethod · 0.95
initMethod · 0.95
scramblePBLMethod · 0.95
initMethod · 0.95
getSquareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected