(int idx)
| 39 | } |
| 40 | |
| 41 | private static int twist(int idx) { |
| 42 | int newTop = (getTop(idx) & 0xF80) | (getBottom(idx) & 0x7F); |
| 43 | int newBottom = (getBottom(idx) & 0xF80) | (getTop(idx) & 0x7F); |
| 44 | return (newBottom << 12) | newTop; |
| 45 | } |
| 46 | |
| 47 | private static boolean canTwist(int idx) { |
| 48 | int top = getTop(idx); |