Lines Matching refs:opt
41 expectEquals(48, $opt$ShlIntConst2(12)); in testShlInt()
42 expectEquals(12, $opt$ShlIntConst0(12)); in testShlInt()
43 expectEquals(-48, $opt$ShlInt(-12, 2)); in testShlInt()
44 expectEquals(1024, $opt$ShlInt(32, 5)); in testShlInt()
46 expectEquals(7, $opt$ShlInt(7, 0)); in testShlInt()
47 expectEquals(14, $opt$ShlInt(7, 1)); in testShlInt()
48 expectEquals(0, $opt$ShlInt(0, 30)); in testShlInt()
50 expectEquals(1073741824L, $opt$ShlInt(1, 30)); in testShlInt()
51 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1, 31)); // overflow in testShlInt()
52 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1073741824, 1)); // overflow in testShlInt()
53 expectEquals(1073741824, $opt$ShlInt(268435456, 2)); in testShlInt()
56 expectEquals(7, $opt$ShlInt(7, 32)); // 32 & 0x1f = 0 in testShlInt()
57 expectEquals(14, $opt$ShlInt(7, 33)); // 33 & 0x1f = 1 in testShlInt()
58 expectEquals(32, $opt$ShlInt(1, 101)); // 101 & 0x1f = 5 in testShlInt()
60 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1, -1)); // -1 & 0x1f = 31 in testShlInt()
61 expectEquals(14, $opt$ShlInt(7, -31)); // -31 & 0x1f = 1 in testShlInt()
62 expectEquals(7, $opt$ShlInt(7, -32)); // -32 & 0x1f = 0 in testShlInt()
63 expectEquals(-536870912, $opt$ShlInt(7, -3)); // -3 & 0x1f = 29 in testShlInt()
65 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(7, Integer.MAX_VALUE)); in testShlInt()
66 expectEquals(7, $opt$ShlInt(7, Integer.MIN_VALUE)); in testShlInt()
70 expectEquals(48L, $opt$ShlLongConst2(12L)); in testShlLong()
71 expectEquals(12L, $opt$ShlLongConst0(12L)); in testShlLong()
72 expectEquals(-48L, $opt$ShlLong(-12L, 2)); in testShlLong()
73 expectEquals(1024L, $opt$ShlLong(32L, 5)); in testShlLong()
75 expectEquals(7L, $opt$ShlLong(7L, 0)); in testShlLong()
76 expectEquals(14L, $opt$ShlLong(7L, 1)); in testShlLong()
77 expectEquals(0L, $opt$ShlLong(0L, 30)); in testShlLong()
79 expectEquals(1073741824L, $opt$ShlLong(1L, 30)); in testShlLong()
80 expectEquals(2147483648L, $opt$ShlLong(1L, 31)); in testShlLong()
81 expectEquals(2147483648L, $opt$ShlLong(1073741824L, 1)); in testShlLong()
84 expectEquals(4294967296L, $opt$ShlLong(1L, 32)); in testShlLong()
85 expectEquals(60129542144L, $opt$ShlLong(7L, 33)); in testShlLong()
86 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, 63)); // overflow in testShlLong()
89 expectEquals(7L, $opt$ShlLong(7L, 64)); // 64 & 0x3f = 0 in testShlLong()
90 expectEquals(14L, $opt$ShlLong(7L, 65)); // 65 & 0x3f = 1 in testShlLong()
91 expectEquals(137438953472L, $opt$ShlLong(1L, 101)); // 101 & 0x3f = 37 in testShlLong()
93 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, -1)); // -1 & 0x3f = 63 in testShlLong()
94 expectEquals(14L, $opt$ShlLong(7L, -63)); // -63 & 0x3f = 1 in testShlLong()
95 expectEquals(7L, $opt$ShlLong(7L, -64)); // -64 & 0x3f = 0 in testShlLong()
96 expectEquals(2305843009213693952L, $opt$ShlLong(1L, -3)); // -3 & 0x3f = 61 in testShlLong()
98 expectEquals(Long.MIN_VALUE, $opt$ShlLong(7L, Integer.MAX_VALUE)); in testShlLong()
99 expectEquals(7L, $opt$ShlLong(7L, Integer.MIN_VALUE)); in testShlLong()
102 expectEquals(24L, $opt$ShlLongConst1(12L)); in testShlLong()
103 expectEquals(0x2345678900000000L, $opt$ShlLongConst32(0x123456789L)); in testShlLong()
104 expectEquals(0x2490249000000000L, $opt$ShlLongConst33(0x12481248L)); in testShlLong()
105 expectEquals(0x4920492000000000L, $opt$ShlLongConst34(0x12481248L)); in testShlLong()
106 expectEquals(0x9240924000000000L, $opt$ShlLongConst35(0x12481248L)); in testShlLong()
110 expectEquals(3, $opt$ShrIntConst2(12)); in testShrInt()
111 expectEquals(12, $opt$ShrIntConst0(12)); in testShrInt()
112 expectEquals(-3, $opt$ShrInt(-12, 2)); in testShrInt()
113 expectEquals(1, $opt$ShrInt(32, 5)); in testShrInt()
115 expectEquals(7, $opt$ShrInt(7, 0)); in testShrInt()
116 expectEquals(3, $opt$ShrInt(7, 1)); in testShrInt()
117 expectEquals(0, $opt$ShrInt(0, 30)); in testShrInt()
118 expectEquals(0, $opt$ShrInt(1, 30)); in testShrInt()
119 expectEquals(-1, $opt$ShrInt(-1, 30)); in testShrInt()
121 expectEquals(0, $opt$ShrInt(Integer.MAX_VALUE, 31)); in testShrInt()
122 expectEquals(-1, $opt$ShrInt(Integer.MIN_VALUE, 31)); in testShrInt()
125 expectEquals(7, $opt$ShrInt(7, 32)); // 32 & 0x1f = 0 in testShrInt()
126 expectEquals(3, $opt$ShrInt(7, 33)); // 33 & 0x1f = 1 in testShrInt()
128 expectEquals(0, $opt$ShrInt(1, -1)); // -1 & 0x1f = 31 in testShrInt()
129 expectEquals(3, $opt$ShrInt(7, -31)); // -31 & 0x1f = 1 in testShrInt()
130 expectEquals(7, $opt$ShrInt(7, -32)); // -32 & 0x1f = 0 in testShrInt()
131 expectEquals(-4, $opt$ShrInt(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in testShrInt()
133 expectEquals(0, $opt$ShrInt(7, Integer.MAX_VALUE)); in testShrInt()
134 expectEquals(7, $opt$ShrInt(7, Integer.MIN_VALUE)); in testShrInt()
138 expectEquals(3L, $opt$ShrLongConst2(12L)); in testShrLong()
139 expectEquals(12L, $opt$ShrLongConst0(12L)); in testShrLong()
140 expectEquals(-3L, $opt$ShrLong(-12L, 2)); in testShrLong()
141 expectEquals(1, $opt$ShrLong(32, 5)); in testShrLong()
143 expectEquals(7L, $opt$ShrLong(7L, 0)); in testShrLong()
144 expectEquals(3L, $opt$ShrLong(7L, 1)); in testShrLong()
145 expectEquals(0L, $opt$ShrLong(0L, 30)); in testShrLong()
146 expectEquals(0L, $opt$ShrLong(1L, 30)); in testShrLong()
147 expectEquals(-1L, $opt$ShrLong(-1L, 30)); in testShrLong()
149 expectEquals(1L, $opt$ShrLong(1073741824L, 30)); in testShrLong()
150 expectEquals(1L, $opt$ShrLong(2147483648L, 31)); in testShrLong()
151 expectEquals(1073741824L, $opt$ShrLong(2147483648L, 1)); in testShrLong()
154 expectEquals(1L, $opt$ShrLong(4294967296L, 32)); in testShrLong()
155 expectEquals(7L, $opt$ShrLong(60129542144L, 33)); in testShrLong()
156 expectEquals(0L, $opt$ShrLong(Long.MAX_VALUE, 63)); in testShrLong()
157 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, 63)); in testShrLong()
160 expectEquals(7L, $opt$ShrLong(7L, 64)); // 64 & 0x3f = 0 in testShrLong()
161 expectEquals(3L, $opt$ShrLong(7L, 65)); // 65 & 0x3f = 1 in testShrLong()
163 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testShrLong()
164 expectEquals(3L, $opt$ShrLong(7L, -63)); // -63 & 0x3f = 1 in testShrLong()
165 expectEquals(7L, $opt$ShrLong(7L, -64)); // -64 & 0x3f = 0 in testShrLong()
166 expectEquals(1L, $opt$ShrLong(2305843009213693952L, -3)); // -3 & 0x3f = 61 in testShrLong()
167 expectEquals(-1L, $opt$ShrLong(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in testShrLong()
169 expectEquals(0L, $opt$ShrLong(7L, Integer.MAX_VALUE)); in testShrLong()
170 expectEquals(7L, $opt$ShrLong(7L, Integer.MIN_VALUE)); in testShrLong()
174 expectEquals(3, $opt$UShrIntConst2(12)); in testUShrInt()
175 expectEquals(12, $opt$UShrIntConst0(12)); in testUShrInt()
176 expectEquals(1073741821, $opt$UShrInt(-12, 2)); in testUShrInt()
177 expectEquals(1, $opt$UShrInt(32, 5)); in testUShrInt()
179 expectEquals(7, $opt$UShrInt(7, 0)); in testUShrInt()
180 expectEquals(3, $opt$UShrInt(7, 1)); in testUShrInt()
181 expectEquals(0, $opt$UShrInt(0, 30)); in testUShrInt()
182 expectEquals(0, $opt$UShrInt(1, 30)); in testUShrInt()
183 expectEquals(3, $opt$UShrInt(-1, 30)); in testUShrInt()
185 expectEquals(0, $opt$UShrInt(Integer.MAX_VALUE, 31)); in testUShrInt()
186 expectEquals(1, $opt$UShrInt(Integer.MIN_VALUE, 31)); in testUShrInt()
189 expectEquals(7, $opt$UShrInt(7, 32)); // 32 & 0x1f = 0 in testUShrInt()
190 expectEquals(3, $opt$UShrInt(7, 33)); // 33 & 0x1f = 1 in testUShrInt()
192 expectEquals(0, $opt$UShrInt(1, -1)); // -1 & 0x1f = 31 in testUShrInt()
193 expectEquals(3, $opt$UShrInt(7, -31)); // -31 & 0x1f = 1 in testUShrInt()
194 expectEquals(7, $opt$UShrInt(7, -32)); // -32 & 0x1f = 0 in testUShrInt()
195 expectEquals(4, $opt$UShrInt(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in testUShrInt()
197 expectEquals(0, $opt$UShrInt(7, Integer.MAX_VALUE)); in testUShrInt()
198 expectEquals(7, $opt$UShrInt(7, Integer.MIN_VALUE)); in testUShrInt()
202 expectEquals(3L, $opt$UShrLongConst2(12L)); in testUShrLong()
203 expectEquals(12L, $opt$UShrLongConst0(12L)); in testUShrLong()
204 expectEquals(4611686018427387901L, $opt$UShrLong(-12L, 2)); in testUShrLong()
205 expectEquals(1, $opt$UShrLong(32, 5)); in testUShrLong()
207 expectEquals(7L, $opt$UShrLong(7L, 0)); in testUShrLong()
208 expectEquals(3L, $opt$UShrLong(7L, 1)); in testUShrLong()
209 expectEquals(0L, $opt$UShrLong(0L, 30)); in testUShrLong()
210 expectEquals(0L, $opt$UShrLong(1L, 30)); in testUShrLong()
211 expectEquals(17179869183L, $opt$UShrLong(-1L, 30)); in testUShrLong()
213 expectEquals(1L, $opt$UShrLong(1073741824L, 30)); in testUShrLong()
214 expectEquals(1L, $opt$UShrLong(2147483648L, 31)); in testUShrLong()
215 expectEquals(1073741824L, $opt$UShrLong(2147483648L, 1)); in testUShrLong()
218 expectEquals(1L, $opt$UShrLong(4294967296L, 32)); in testUShrLong()
219 expectEquals(7L, $opt$UShrLong(60129542144L, 33)); in testUShrLong()
220 expectEquals(0L, $opt$UShrLong(Long.MAX_VALUE, 63)); in testUShrLong()
221 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, 63)); in testUShrLong()
224 expectEquals(7L, $opt$UShrLong(7L, 64)); // 64 & 0x3f = 0 in testUShrLong()
225 expectEquals(3L, $opt$UShrLong(7L, 65)); // 65 & 0x3f = 1 in testUShrLong()
227 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testUShrLong()
228 expectEquals(3L, $opt$UShrLong(7L, -63)); // -63 & 0x3f = 1 in testUShrLong()
229 expectEquals(7L, $opt$UShrLong(7L, -64)); // -64 & 0x3f = 0 in testUShrLong()
230 expectEquals(1L, $opt$UShrLong(2305843009213693952L, -3)); // -3 & 0x3f = 61 in testUShrLong()
231 expectEquals(4L, $opt$UShrLong(Long.MIN_VALUE, -3)); // -3 & 0x3f = 61 in testUShrLong()
233 expectEquals(0L, $opt$UShrLong(7L, Integer.MAX_VALUE)); in testUShrLong()
234 expectEquals(7L, $opt$UShrLong(7L, Integer.MIN_VALUE)); in testUShrLong()
238 static int $opt$ShlInt(int value, int distance) { in $opt$ShlInt()
242 static long $opt$ShlLong(long value, int distance) { in $opt$ShlLong()
246 static int $opt$ShrInt(int value, int distance) { in $opt$ShrInt()
250 static long $opt$ShrLong(long value, int distance) { in $opt$ShrLong()
254 static int $opt$UShrInt(int value, int distance) { in $opt$UShrInt()
258 static long $opt$UShrLong(long value, int distance) { in $opt$UShrLong()
262 static int $opt$ShlIntConst2(int value) { in $opt$ShlIntConst2()
266 static long $opt$ShlLongConst2(long value) { in $opt$ShlLongConst2()
270 static int $opt$ShrIntConst2(int value) { in $opt$ShrIntConst2()
274 static long $opt$ShrLongConst2(long value) { in $opt$ShrLongConst2()
278 static int $opt$UShrIntConst2(int value) { in $opt$UShrIntConst2()
282 static long $opt$UShrLongConst2(long value) { in $opt$UShrLongConst2()
286 static int $opt$ShlIntConst0(int value) { in $opt$ShlIntConst0()
290 static long $opt$ShlLongConst0(long value) { in $opt$ShlLongConst0()
294 static int $opt$ShrIntConst0(int value) { in $opt$ShrIntConst0()
298 static long $opt$ShrLongConst0(long value) { in $opt$ShrLongConst0()
302 static int $opt$UShrIntConst0(int value) { in $opt$UShrIntConst0()
306 static long $opt$UShrLongConst0(long value) { in $opt$UShrLongConst0()
310 static long $opt$ShlLongConst1(long value) { in $opt$ShlLongConst1()
314 static long $opt$ShlLongConst32(long value) { in $opt$ShlLongConst32()
318 static long $opt$ShlLongConst33(long value) { in $opt$ShlLongConst33()
322 static long $opt$ShlLongConst34(long value) { in $opt$ShlLongConst34()
326 static long $opt$ShlLongConst35(long value) { in $opt$ShlLongConst35()