Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_ph…
…ys_req_item Replace a lot of formulaic multiplications (containing casts, no less) with calls to a pair of functions. This encapsulates in a single place the operations which require care relating to integer overflow. Cc: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
- Loading branch information
1 parent
f1b8caf
commit a386482
Showing
1 changed file
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters