diff options
author | thestig <thestig@chromium.org> | 2016-10-12 09:37:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-12 09:37:28 -0700 |
commit | 47cbc06ef6f528e4d30a869ec533d010ee79b064 (patch) | |
tree | ebe4ee69194e32de371999268749cef7ef114305 /core/fpdfapi/parser/cpdf_parser.cpp | |
parent | a30537f8b07492489e81414c9037af90c8b1448e (diff) | |
download | pdfium-47cbc06ef6f528e4d30a869ec533d010ee79b064.tar.xz |
Optimize roll operator in CPDF_PSEngine.
Rolling 0 times is a no-op.
Rolling 0 items is a no-op.
Rolling N items J times is the same as rolling N items J % N times.
This also avoids an integer overflow corner case.
BUG=chromium:648077
Review-Url: https://codereview.chromium.org/2412833002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
0 files changed, 0 insertions, 0 deletions