This website works better with JavaScript
Home
Explore
Help
Sign In
sengler
/
tor-parallel-relay-conn
Watch
1
Star
0
Fork
0
Files
Issues
0
Pull Requests
0
Wiki
Browse Source
Add Coccinelle patch for detecing places where CEIL_DIV should be used.
Alexander Færøy
8 years ago
parent
7c3e980fb9
commit
25eaf77033
1 changed files
with
6 additions
and
0 deletions
Split View
Show Diff Stats
6
0
scripts/coccinelle/ceil_div.cocci
+ 6
- 0
scripts/coccinelle/ceil_div.cocci
View File
@@ -0,0 +1,6 @@
+@@
+expression n, d;
+@@
+
+- (((n) + (d) - 1) / (d))
++ CEIL_DIV(n, d)