Add Coccinelle patch for detecing places where CEIL_DIV should be used.

This commit is contained in:
Alexander Færøy 2017-06-05 14:45:53 +00:00 committed by Nick Mathewson
parent 7c3e980fb9
commit 25eaf77033
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
@@
expression n, d;
@@
- (((n) + (d) - 1) / (d))
+ CEIL_DIV(n, d)