diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-06-05 14:45:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-24 15:20:11 -0400 |
commit | 25eaf77033cd4cc6a5241554be8951a022dd54bd (patch) | |
tree | 68705f30c5524809d60891d7d53f9e749ba3ab8c /scripts | |
parent | 7c3e980fb939aa93e9ea950a3ed96b53bb525adb (diff) | |
download | tor-25eaf77033cd4cc6a5241554be8951a022dd54bd.tar.gz tor-25eaf77033cd4cc6a5241554be8951a022dd54bd.zip |
Add Coccinelle patch for detecing places where CEIL_DIV should be used.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/coccinelle/ceil_div.cocci | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/coccinelle/ceil_div.cocci b/scripts/coccinelle/ceil_div.cocci new file mode 100644 index 0000000000..00843e82c3 --- /dev/null +++ b/scripts/coccinelle/ceil_div.cocci @@ -0,0 +1,6 @@ +@@ +expression n, d; +@@ + +- (((n) + (d) - 1) / (d)) ++ CEIL_DIV(n, d) |