Add Coccinelle patch for detecing places where CEIL_DIV should be used.
This commit is contained in:
parent
7c3e980fb9
commit
25eaf77033
|
@ -0,0 +1,6 @@
|
|||
@@
|
||||
expression n, d;
|
||||
@@
|
||||
|
||||
- (((n) + (d) - 1) / (d))
|
||||
+ CEIL_DIV(n, d)
|
Loading…
Reference in New Issue