private void cleanLeftEdge ( int cutIndex ) { if ( cutIndex < ( 1 << 5 ) ) { zeroLeft ( pointer . display0 , cutIndex ) ; } else if ( cutIndex < ( 1 << 10 ) ) { zeroLeft ( pointer . display0 , cutIndex & 0x1f ) ; pointer . display1 = copyRight ( pointer . display1 , ( cutIndex >>> 5 ) ) ; } else if ( cutIndex < ( 1 << 15 ) ) { zeroLeft ( pointer . display0 , cutIndex & 0x1f ) ; pointer . display1 = copyRight ( pointer . display1 , ( cutIndex >>> 5 ) & 0x1f ) ; pointer . display2 = copyRight ( pointer . display2 , ( cutIndex >>> 10 ) ) ; } else if ( cutIndex < ( 1 << 20 ) ) { zeroLeft ( pointer . display0 , cutIndex & 0x1f ) ; pointer . display1 = copyRight ( pointer . display1 , ( cutIndex >>> 5 ) & 0x1f ) ; pointer . display2 = copyRight ( pointer . display2 , ( cutIndex >>> 10 ) & 0x1f ) ; pointer . display3 = copyRight ( pointer . display3 , ( cutIndex >>> 15 ) ) ; } else if ( cutIndex < ( 1 << 25 ) ) { zeroLeft ( pointer . display0 , cutIndex & 0x1f ) ; pointer . display1 = copyRight ( pointer . display1 , ( cutIndex >>> 5 ) & 0x1f ) ; pointer . display2 = copyRight ( pointer . display2 , ( cutIndex >>> 10 ) & 0x1f ) ; pointer . display3 = copyRight ( pointer . display3 , ( cutIndex >>> 15 ) & 0x1f ) ; pointer . display4 = copyRight ( pointer . display4 , ( cutIndex >>> 20 ) ) ; } else if ( cutIndex < ( 1 << 30 ) ) { zeroLeft ( pointer . display0 , cutIndex & 0x1f ) ; pointer . display1 = copyRight ( pointer . display1 , ( cutIndex >>> 5 ) & 0x1f ) ; pointer . display2 = copyRight ( pointer . display2 , ( cutIndex >>> 10 ) & 0x1f ) ; pointer . display3 = copyRight ( pointer . display3 , ( cutIndex >>> 15 ) & 0x1f ) ; pointer . display4 = copyRight ( pointer . display4 , ( cutIndex >>> 20 ) & 0x1f ) ; pointer . display5 = copyRight ( pointer . display5 , ( cutIndex >>> 25 ) ) ; } else { throw new IllegalArgumentException ( ) ; } }
requires structure is at index cutIndex and writable at level 0