commit | 9cd6a789c6bd96e89b21b796292138d77d94c5aa | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Jan 18 16:06:18 2015 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Sun Jan 18 16:06:18 2015 -0800 |
tree | ef69ea8492916be706e0e976ec49f48ee7f18712 | |
parent | b53f0fbf96ec0b1f9ad7ddad5e9480d17e48e27a [diff] |
Clean-up, simplify, and slightly speed-up bounds logic in set_pop(). Elsewhere in the setobject.c code we do a bitwise-and with the mask instead of using a conditional to reset to zero on wrap-around. Using that same technique here use gives cleaner, faster, and more consistent code.