diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-28 16:52:40 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-28 16:52:40 (GMT) |
commit | 71adc9328d593449a7d8d3bff45b09bf87afa59e (patch) | |
tree | 55c54fa161e83c108d1e1dca97b26a37875316d3 /Objects/methodobject.c | |
parent | b331802f976c85954efbeb7a49f2591951460be2 (diff) | |
download | cpython-71adc9328d593449a7d8d3bff45b09bf87afa59e.zip cpython-71adc9328d593449a7d8d3bff45b09bf87afa59e.tar.gz cpython-71adc9328d593449a7d8d3bff45b09bf87afa59e.tar.bz2 |
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).
Diffstat (limited to 'Objects/methodobject.c')
0 files changed, 0 insertions, 0 deletions