parameters: (x, shift)
return_statement: return q + (2*(x & (b-1)) + (q&1) > b)
docstring: Given an integer x and a nonnegative integer shift, return closest
      integer to x / 2**shift; use round-to-even in case of a tie.
docstring_summary: Given an integer x and a nonnegative integer shift, return closest
      integer to x / 2**shift; use round-to-even in case of a tie.
docstring_tokens: Given an integer x and a nonnegative integer shift return closest integer to x / 2 ** shift ; use round - to - even in case of a tie .
function: def _rshift_nearest(x, shift):
      """Given an integer x and a nonnegative integer shift, return closest
      integer to x / 2**shift; use round-to-even in case of a tie.
  
      """
      b, q = 1L << shift, x >> shift
      return q + (2*(x & (b-1)) + (q&1) > b)
function_tokens: def _rshift_nearest ( x , shift ) : b , q = 1L << shift , x >> shift return q + ( 2 * ( x & ( b - 1 ) ) + ( q & 1 ) > b )