Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
20 lines
279 B
Plaintext
20 lines
279 B
Plaintext
// Use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))
|
|
@@
|
|
expression e1;
|
|
expression e2;
|
|
@@
|
|
(
|
|
- ((e1) + e2 - 1) / (e2)
|
|
+ DIV_ROUND_UP(e1,e2)
|
|
|
|
|
- ((e1) + (e2 - 1)) / (e2)
|
|
+ DIV_ROUND_UP(e1,e2)
|
|
)
|
|
|
|
@@
|
|
expression e1;
|
|
expression e2;
|
|
@@
|
|
-(DIV_ROUND_UP(e1,e2))
|
|
+DIV_ROUND_UP(e1,e2)
|