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

Method getShape2Idx

app/src/main/java/cs/sq12phase/Shape.java:24–26  ·  view source on GitHub ↗
(int shp)

Source from the content-addressed store, hash-verified

22 int parity;
23
24 static int getShape2Idx(int shp) {
25 return Arrays.binarySearch(ShapeIdx, shp & 0xffffff) <<1 | shp>>24;
26 }
27
28 private int getIdx() {
29 return Arrays.binarySearch(ShapeIdx, top << 12 | bottom) << 1 | parity;

Callers 2

initMethod · 0.95
getShapeIdxMethod · 0.95

Calls 1

binarySearchMethod · 0.80

Tested by

no test coverage detected