]> granicus.if.org Git - python/commit
Style/consistency/nano-optimization nit: replace occurrences of
authorMark Dickinson <dickinsm@gmail.com>
Mon, 28 Sep 2009 16:52:40 +0000 (16:52 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 28 Sep 2009 16:52:40 +0000 (16:52 +0000)
commit71adc9328d593449a7d8d3bff45b09bf87afa59e
tree55c54fa161e83c108d1e1dca97b26a37875316d3
parentb331802f976c85954efbeb7a49f2591951460be2
Style/consistency/nano-optimization nit:  replace occurrences of
  (high_bits << PyLong_SHIFT) + low_bits with
  (high_bits << PyLong_SHIFT) | low_bits
in Objects/longobject.c.  Motivation:
 - shouldn't unnecessarily mix bit ops with arithmetic ops (style)
 - this pattern should be spelt the same way thoughout (consistency)
 - it's very very very slightly faster: no need to worry about
   carries to the high digit (nano-optimization).
Objects/longobject.c