summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_smi.h
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-02-14 16:15:45 +0100
committerJan Kara <jack@suse.cz>2008-04-17 14:22:23 +0200
commit8dee00bb758f9e1d7fac9f5d2463d09444d4f255 (patch)
tree86a963fdb55606b1e4e9285150942a799e457262 /include/rdma/ib_smi.h
parent15aebd2866b21a568d8defec134bf29f9aea9088 (diff)
fs/udf: Use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) / (d)) but is perhaps more readable. An extract of the semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @haskernel@ @@ #include <linux/kernel.h> @depends on haskernel@ expression n,d; @@ ( - (n + d - 1) / d + DIV_ROUND_UP(n,d) | - (n + (d - 1)) / d + DIV_ROUND_UP(n,d) ) @depends on haskernel@ expression n,d; @@ - DIV_ROUND_UP((n),d) + DIV_ROUND_UP(n,d) @depends on haskernel@ expression n,d; @@ - DIV_ROUND_UP(n,(d)) + DIV_ROUND_UP(n,d) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/rdma/ib_smi.h')
0 files changed, 0 insertions, 0 deletions