commit | dc2c91d1d1cf5aeac19b25210e470909f175b160 | [log] [tgz] |
---|---|---|
author | Samuel Huang <huangs@chromium.org> | Fri Mar 15 21:08:23 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 15 21:08:23 2019 |
tree | 3baf5d707b372d0cd0d238691d0a9843dba6ccbf | |
parent | 386583bbe5a57761ff36bf925066f281b57d9d26 [diff] |
[Zucchini] Add helpers for 2 byte and 4 byte alignment. This CL adds specialized versions of AlignCeil(): {IncrementForAlignCeil2(), IncrementForAlignCeil4()}. Given a value to be aligned, these functions return an increment that the caller can add to the given value to cause alignment. This scheme admits iterator alignment. e.g., by: aligned_it = it + IncrementForAlignCeil4(it - base_it); These functions will be used by code to add ARM support. Bug: 918867 Change-Id: I6da038a748a29cde82e4c82e597455644213abd9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1524920 Reviewed-by: Samuel Huang <huangs@chromium.org> Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#641279}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .