Lines Matching full:distance
31 // (i >>> #distance) | (i << #(reg_bits - distance))
68 // (j >>> #distance) | (j << #(reg_bits - distance))
98 // (i >>> #distance) | (i << #-distance)
126 // (j >>> #distance) | (j << #-distance)
150 // (i >>> distance) | (i << (#reg_bits - distance)
172 public static int ror_int_reg_v_csubv(int value, int distance) { in ror_int_reg_v_csubv() argument
173 return (value >>> distance) | (value << (32 - distance)); in ror_int_reg_v_csubv()
176 // (distance = x - y)
177 // (i >>> distance) | (i << (#reg_bits - distance)
207 int distance = x - y; in ror_int_subv_csubv() local
208 return (value >>> distance) | (value << (32 - distance)); in ror_int_subv_csubv()
239 int distance = x - y; in ror_int_subv_csubv_env() local
240 int bits_minus_dist = 32 - distance; in ror_int_subv_csubv_env()
241 return ((value >>> distance) | (value << bits_minus_dist)) + bits_minus_dist; in ror_int_subv_csubv_env()
244 // (j >>> distance) | (j << (#reg_bits - distance)
266 public static long ror_long_reg_v_csubv(long value, int distance) { in ror_long_reg_v_csubv() argument
267 return (value >>> distance) | (value << (64 - distance)); in ror_long_reg_v_csubv()
272 public static long ror_long_reg_v_csubv_0(long value, int distance) { in ror_long_reg_v_csubv_0() argument
273 return (value >>> distance) | (value << (32 - distance)); in ror_long_reg_v_csubv_0()
279 int distance = x - y; in ror_long_subv_csubv_0() local
280 return (value >>> distance) | (value << (32 - distance)); in ror_long_subv_csubv_0()
283 // (i >>> (#reg_bits - distance)) | (i << distance)
306 public static int rol_int_reg_csubv_v(int value, int distance) { in rol_int_reg_csubv_v() argument
307 return (value >>> (32 - distance)) | (value << distance); in rol_int_reg_csubv_v()
310 // (distance = x - y)
311 // (i >>> (#reg_bits - distance)) | (i << distance)
343 int distance = x - y; in rol_int_csubv_subv() local
344 return (value >>> (32 - distance)) | (value << distance); in rol_int_csubv_subv()
347 // (j >>> (#reg_bits - distance)) | (j << distance)
370 public static long rol_long_reg_csubv_v(long value, int distance) { in rol_long_reg_csubv_v() argument
371 return (value >>> (64 - distance)) | (value << distance); in rol_long_reg_csubv_v()
376 public static long rol_long_reg_csubv_v_0(long value, int distance) { in rol_long_reg_csubv_v_0() argument
377 return (value >>> (32 - distance)) | (value << distance); in rol_long_reg_csubv_v_0()
380 // (i >>> distance) | (i << -distance) (i.e. libcore's Integer.rotateRight)
401 public static int ror_int_reg_v_negv(int value, int distance) { in ror_int_reg_v_negv() argument
402 return (value >>> distance) | (value << -distance); in ror_int_reg_v_negv()
425 public static int ror_int_reg_v_negv_env(int value, int distance) { in ror_int_reg_v_negv_env() argument
426 int neg_distance = -distance; in ror_int_reg_v_negv_env()
427 return ((value >>> distance) | (value << neg_distance)) + neg_distance; in ror_int_reg_v_negv_env()
430 // (j >>> distance) | (j << -distance) (i.e. libcore's Long.rotateRight)
451 public static long ror_long_reg_v_negv(long value, int distance) { in ror_long_reg_v_negv() argument
452 return (value >>> distance) | (value << -distance); in ror_long_reg_v_negv()
455 // (i << distance) | (i >>> -distance) (i.e. libcore's Integer.rotateLeft)
476 public static int rol_int_reg_negv_v(int value, int distance) { in rol_int_reg_negv_v() argument
477 return (value << distance) | (value >>> -distance); in rol_int_reg_negv_v()
480 // (j << distance) | (j >>> -distance) (i.e. libcore's Long.rotateLeft)
501 public static long rol_long_reg_negv_v(long value, int distance) { in rol_long_reg_negv_v() argument
502 return (value << distance) | (value >>> -distance); in rol_long_reg_negv_v()
505 // (j << distance) + (j >>> -distance)
506 // We can't perform the optimization as distance might be `0`, resulting in the wrong value.
525 public static long rol_long_reg_v_negv_add(long value, int distance) { in rol_long_reg_v_negv_add() argument
526 return (value << distance) + (value >>> -distance); in rol_long_reg_v_negv_add()
529 // (j << distance) ^ (j >>> -distance)
530 // We can't perform the optimization as distance might be `0`, resulting in the wrong value.
550 public static long rol_long_reg_v_negv_xor(long value, int distance) { in rol_long_reg_v_negv_xor() argument
551 return (value << distance) ^ (value >>> -distance); in rol_long_reg_v_negv_xor()
557 int distance = returnFalse() ? 1 : 0; in $noinline$testDontOptimizeAddIntoRotate_Int() local
560 int result = (value >>> distance) + (value << -distance); in $noinline$testDontOptimizeAddIntoRotate_Int()
567 int distance = returnFalse() ? 1 : 0; in $noinline$testDontOptimizeAddIntoRotate_Long() local
570 long result = (value >>> distance) + (value << -distance); in $noinline$testDontOptimizeAddIntoRotate_Long()
577 int distance = returnFalse() ? 1 : 0; in $noinline$testDontOptimizeXorIntoRotate_Int() local
580 int result = (value >>> distance) ^ (value << -distance); in $noinline$testDontOptimizeXorIntoRotate_Int()
587 int distance = returnFalse() ? 1 : 0; in $noinline$testDontOptimizeXorIntoRotate_Long() local
590 long result = (value >>> distance) ^ (value << -distance); in $noinline$testDontOptimizeXorIntoRotate_Long()