add div_round_up.cocci

pull/4/head
Boris Faure 2 months ago
parent 62a8e0a021
commit a0a33d0896
Signed by: borisfaure
GPG Key ID: EAA9CD729F522998
  1. 11
      scripts/coccinelle/div_round_up.cocci

@ -0,0 +1,11 @@
@@
expression n, d;
@@
(
- (((n + d) - 1) / d)
+ DIV_ROUND_UP(n, d)
|
- ((n + (d - 1)) / d)
+ DIV_ROUND_UP(n, d)
)
Loading…
Cancel
Save