commit 25eaf77033cd4cc6a5241554be8951a022dd54bd Author: Alexander Færøy ahf@torproject.org Date: Mon Jun 5 14:45:53 2017 +0000
Add Coccinelle patch for detecing places where CEIL_DIV should be used. --- scripts/coccinelle/ceil_div.cocci | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/scripts/coccinelle/ceil_div.cocci b/scripts/coccinelle/ceil_div.cocci new file mode 100644 index 000000000..00843e82c --- /dev/null +++ b/scripts/coccinelle/ceil_div.cocci @@ -0,0 +1,6 @@ +@@ +expression n, d; +@@ + +- (((n) + (d) - 1) / (d)) ++ CEIL_DIV(n, d)
tor-commits@lists.torproject.org